/[MITgcm]/MITgcm/pkg/atm_ocn_coupler/setdir.c
ViewVC logotype

Contents of /MITgcm/pkg/atm_ocn_coupler/setdir.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Oct 25 17:31:29 2013 UTC (10 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint65, HEAD
File MIME type: text/plain
keep a copy of this simple C subroutine after moving it from
 pkg/compon_communic to eesupp/src

1 /*
2 * $Header: /u/gcmpack/MITgcm/pkg/compon_communic/setdir.c,v 1.2 2011/11/16 17:00:04 jmc Exp $
3 * $Name: $
4 */
5
6 #include <stdlib.h>
7 #include <unistd.h>
8 /* Here, we get the definition of the FC_NAMEMANGLE() macro. */
9 #include "FC_NAMEMANGLE.h"
10
11 void FC_NAMEMANGLE(setdir) (int *myPEListId )
12 {
13 char RUN_DIR[1024];
14 char *rundirsetting;
15 char *SROOT;
16 char *SPREF;
17 char *scycle;
18 char *endPtr;
19 char SROOT_BUFFER[1024];
20 int rc;
21 int sDirNum;
22 int sDirCycle;
23
24 sprintf(RUN_DIR,"rank_%d",*myPEListId);
25 rc = chdir(RUN_DIR);
26 /* perror(strerror(rc));
27 exit(-1); */
28 }

  ViewVC Help
Powered by ViewVC 1.1.22