Index: branches/tap_branches/psphot/src/psphotPetrosian.c
===================================================================
--- branches/tap_branches/psphot/src/psphotPetrosian.c	(revision 25900)
+++ branches/tap_branches/psphot/src/psphotPetrosian.c	(revision 27838)
@@ -7,5 +7,5 @@
 
     psAssert (source->extpars, "need to run psphotRadialProfile first");
-    psAssert (source->extpars->profile, "need to run psphotRadialProfile first");
+    psAssert (source->extpars->ellipticalFlux, "need to run psphotRadialProfile first");
 
     // integrate the radial profile for radial bins defined for the petrosian measurement:
@@ -24,8 +24,8 @@
     psTrace ("psphot", 3, "source at %f,%f: petrosian radius: %f, flux: %f, axis ratio: %f, angle: %f",
 	     source->peak->xf, source->peak->yf, 
-	     source->extpars->petrosian_80->radius, 
-	     source->extpars->petrosian_80->flux, 
-	     source->extpars->profile->axes.minor/source->extpars->profile->axes.major, 
-	     source->extpars->profile->axes.theta*PS_DEG_RAD);
+	     source->extpars->petrosianRadius, 
+	     source->extpars->petrosianFlux, 
+	     source->extpars->axes.minor/source->extpars->axes.major, 
+	     source->extpars->axes.theta*PS_DEG_RAD);
 
     return true;
