Changeset 81


Ignore:
Timestamp:
01/17/13 11:15:04 (11 years ago)
Author:
jbrlod
Message:

bug fixes

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile

    r78 r81  
    22#GENOPT= -E 
    33GENOPT=-DOPTIMORDER -E 
    4 YAOPT= -p -n +g -x sinobad 
     4YAOPT= -p +O3 -x sinobad 
    55 
    66essai: essai.d ../object/ncutil.o 
  • trunk/src/sinobad.d

    r78 r81  
    1919defval NY      22   
    2020defval NZ      31  
    21 defval NMAX    800 //    !  maximum of iterations for the SOR solver 
     21defval NMAX    800 //    !    maximum of iterations for the SOR solver 
    2222defval TA      10 |__DATE__ | number of time steps 
    2323defval TU       2 | start time step 
     
    6060//#option O_VARINCR 
    6161//#option    O_GRADTEST 
    62 //#option   O_DBG_NANF 
     62option   O_DBG_NANF 
    6363//#option   O_DBG_TING 
    6464//option O_DUAL 
     
    812812ctin     wa                     2       from    hdivn                   1  i    j    k    t 
    813813//#----------> 
    814 exec disp_ct_in 
     814//#exec disp_ct_in 
    815815 
    816816#ifdef OPTIMORDER 
  • trunk/src/sinobad.h

    r75 r81  
    11351135  //xwriteout t suff ncfile  
    11361136  //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) 
    11381138   {  
    11391139     printf("\n not enough arguments in writeout\n"); 
     
    11421142 
    11431143  int t; 
     1144  int tbeg,tend; 
    11441145  char suff[200]; 
    11451146  char ncfile[200]; 
    11461147  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 
    11531170 
    11541171} 
Note: See TracChangeset for help on using the changeset viewer.