/* * $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/atm_ocn_coupler/setdir.c,v 1.1 2013/10/25 17:31:29 jmc Exp $ * $Name: checkpoint65b $ */ #include #include /* Here, we get the definition of the FC_NAMEMANGLE() macro. */ #include "FC_NAMEMANGLE.h" void FC_NAMEMANGLE(setdir) (int *myPEListId ) { char RUN_DIR[1024]; char *rundirsetting; char *SROOT; char *SPREF; char *scycle; char *endPtr; char SROOT_BUFFER[1024]; int rc; int sDirNum; int sDirCycle; sprintf(RUN_DIR,"rank_%d",*myPEListId); rc = chdir(RUN_DIR); /* perror(strerror(rc)); exit(-1); */ }