Index: trunk/psastro/src/psastroModel.c
===================================================================
--- trunk/psastro/src/psastroModel.c	(revision 15880)
+++ trunk/psastro/src/psastroModel.c	(revision 15891)
@@ -31,8 +31,20 @@
     // run the full astrometry analysis (chip and/or mosaic)
     if (!psastroModelAnalysis (config)) {
-	psErrorStackPrint(stderr, "failure in psastro analysis\n");
+	psErrorStackPrint(stderr, "failure in psastro model analysis\n");
 	exit (1);
     }
     
+    // run the full astrometry analysis (chip and/or mosaic)
+    if (!psastroModelAdjust (config)) {
+	psErrorStackPrint(stderr, "failure in psastro model adjust\n");
+	exit (1);
+    }
+    
+    // save the model
+    if (!psastroModelDataSave (config)) {
+	psErrorStackPrint(stderr, "error saving output data\n");
+	exit (1);
+    }
+
     psLogMsg ("psastro", 3, "complete psastro run: %f sec\n", psTimerMark ("complete"));
 
