/* mpimpmdrun: utilize pprun facility to start MPMD MPI application */ /* 2005 gjt for ESMF */ #include #include #include #define NP_ARG "-np" #define PROCF_ARG "-procf" #define PROCFILE ".mpimpmdrun.procfile" int main(int argc, char *argv[]){ int i; int helpflag=0; char installdir[256]; char pprun_arg[1024]; char pprun_call[2048]; pprun_arg[0] = pprun_call[0] = '\0'; FILE *fp = fopen(PROCFILE, "w"); /* extract the -np arguments from list of arguments if they exist */ for (i=1; i