Changeset 81
- Timestamp:
- 01/17/13 11:15:04 (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Makefile
r78 r81 2 2 #GENOPT= -E 3 3 GENOPT=-DOPTIMORDER -E 4 YAOPT= -p -n +g-x sinobad4 YAOPT= -p +O3 -x sinobad 5 5 6 6 essai: essai.d ../object/ncutil.o -
trunk/src/sinobad.d
r78 r81 19 19 defval NY 22 20 20 defval NZ 31 21 defval NMAX 800 // ! maximum of iterations for the SOR solver21 defval NMAX 800 // ! maximum of iterations for the SOR solver 22 22 defval TA 10 |__DATE__ | number of time steps 23 23 defval TU 2 | start time step … … 60 60 //#option O_VARINCR 61 61 //#option O_GRADTEST 62 //#option O_DBG_NANF62 option O_DBG_NANF 63 63 //#option O_DBG_TING 64 64 //option O_DUAL … … 812 812 ctin wa 2 from hdivn 1 i j k t 813 813 //#----------> 814 exec disp_ct_in814 //#exec disp_ct_in 815 815 816 816 #ifdef OPTIMORDER -
trunk/src/sinobad.h
r75 r81 1135 1135 //xwriteout t suff ncfile 1136 1136 //Ecrit dans le fichier ncfile les variables u,v,t,s,ssh avec le suffixe suff au pas de temps t 1137 if (argc !=4)1137 if (argc<4) 1138 1138 { 1139 1139 printf("\n not enough arguments in writeout\n"); … … 1142 1142 1143 1143 int t; 1144 int tbeg,tend; 1144 1145 char suff[200]; 1145 1146 char ncfile[200]; 1146 1147 int ncfile_id; 1147 t=atoi(argv[1]); 1148 strcpy(suff,argv[2]); 1149 strcpy(ncfile,argv[3]); 1150 ncfile_id=Ouvre_nc_add(ncfile); 1151 write_out_var(t,ncfile_id,suff); 1152 nc_close(ncfile_id); 1148 if (argc==4) { 1149 t=atoi(argv[1]); 1150 strcpy(suff,argv[2]); 1151 strcpy(ncfile,argv[3]); 1152 ncfile_id=Ouvre_nc_add(ncfile); 1153 write_out_var(t,ncfile_id,suff); 1154 nc_close(ncfile_id); 1155 } 1156 else { 1157 tbeg=atoi(argv[1]); 1158 tend=atoi(argv[2]); 1159 t=atoi(argv[3]); //dt 1160 // strcpy(suff,argv[2]); 1161 strcpy(ncfile,argv[5]); 1162 ncfile_id=Ouvre_nc_add(ncfile); 1163 for (int i=tbeg;i<=tend;i+=t) { 1164 sprintf(suff,"%s_%d",argv[4],i); 1165 write_out_var(i,ncfile_id,suff); 1166 } 1167 nc_close(ncfile_id); 1168 } 1169 1153 1170 1154 1171 }
Note: See TracChangeset
for help on using the changeset viewer.