5 int GenerateMatlab( char * prefix
);
6 void GetMass( double CL
[], double Mass
[] );
7 void INTEGRATE( double TIN
, double TOUT
);
14 /* ---- TIME VARIABLES ------------------ */
18 TEND
= TSTART
+ 3600*24*5;
24 for( i
= 0; i
< NVAR
; i
++ ) {
31 /* ********** TIME LOOP **************************** */
35 printf("\n%7s %7s ", "done[%]", "Time[h]");
36 for( i
= 0; i
< NMONITOR
; i
++ )
37 printf( "%8s ", SPC_NAMES
[MONITOR
[i
]] );
38 for( i
= 0; i
< NMASS
; i
++ )
39 printf( "(%6s) ", SMASS
[i
] );
42 while (TIME
<= TEND
) {
44 printf("\n%6.1f%% %7.2f ", (TIME
-TSTART
)/(TEND
-TSTART
)*100, TIME
/3600 );
45 for( i
= 0; i
< NMONITOR
; i
++ )
46 printf( "%9.3e ", C
[ MONITOR
[i
] ]/CFACTOR
);
47 for( i
= 0; i
< NMASS
; i
++ )
48 printf( "%9.3e ", dval
[i
]/CFACTOR
);
52 INTEGRATE( TIME
, TIME
+DT
);
56 /* *********** END TIME LOOP *********************** */
61 return 0; /*didnt return anything initially */