232 int main(
int argc,
char *argv[])
257 if (
init(&argc,&argv) >= 1) {
258 dualfprintf(
fail_file,
"main:init: failure\n");
306 trifprintf(
"proc: %04d : Start initial diagnostics\n", myid);
309 trifprintf(
"proc: %04d : End initial diagnostics\n", myid);
325 trifprintf(
"proc: %04d : Start computation\n", myid);
342 step_ch_full(truestep,
GLOBALPOINT(pglobal),
GLOBALPOINT(pstagglobal),
GLOBALPOINT(unewglobal),
GLOBALPOINT(vpotarrayglobal),
GLOBALPOINT(Bhatglobal),
GLOBALPOINT(gp_l),
GLOBALPOINT(gp_r),
GLOBALPOINT(F1),
GLOBALPOINT(F2),
GLOBALPOINT(F3),
GLOBALPOINT(emf),
GLOBALPOINT(ulastglobal));
389 output_steptimedt_info(comptstart);
392 trifprintf(
"proc: %04d : End computation\n", myid);
444 int gocheck(
int whichlocation)
450 FILE *gogo_file,*gocont_file;
459 sprintf(stemp,
"%sgo.cont",
DATADIR);
461 if((gocont_file=fopen(stemp,
"rt"))==NULL){
462 dualfprintf(
fail_file,
"WARNING: Could not open go.cont file: %s , assume user doesn't want to use it\n",stemp);
471 MPI_Bcast(&goch,1,MPI_INT,MPIid[0], MPI_COMM_GRMHD);
481 goch=fgetc(gocont_file);
482 if( (goch==
'y')||(goch==
'Y')){
484 trifprintf(
"#go.cont called\n");
486 fscanf(gocont_file,
"%d",&
runtype);
494 MPI_Bcast(&
gocont,1,MPI_INT,MPIid[0], MPI_COMM_GRMHD);
495 MPI_Bcast(&
runtype,1,MPI_INT,MPIid[0], MPI_COMM_GRMHD);
507 sprintf(stemp,
"%sgo.go",
DATADIR);
509 if((gogo_file=fopen(stemp,
"rt"))==NULL){
515 goch=fgetc(gogo_file);
516 if( (goch==
'n')||(goch==
'N')){
518 trifprintf(
"#go.go called\n");
529 MPI_Bcast(&goend,1,MPI_INT,MPIid[0], MPI_COMM_GRMHD);
531 trifprintf(
"#proc: %s go.go called\n",myidtxt);
536 if(goend==1) trifprintf(
"proc: %s Go end called(go.go)\n",myidtxt) ;