Changeset 7 for trunk/src


Ignore:
Timestamp:
03/07/11 11:49:01 (13 years ago)
Author:
jbrlod
Message:

rst write

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sinobad.d

    r3 r7  
    1515#HAT_NAME -----------------------------------------HAT_NAME 
    1616hat_name  sinobad 
    17  
     17  
    1818#OPTION ----------------------------------------------OPTION 
    1919#option o_parallel 
     
    2424#option   O_DBG_TING 
    2525option  O_EXTOBJ "../object/ncutil.o" 
     26option O_REAL double 
    2627 
    2728#TRAJECTOIRES (DIM) -----------------------------------TRAJ 
  • trunk/src/sinobad.h

    r6 r7  
    9191  printf("////////////////////////////////////////////////////////////////////////\n"); 
    9292  printf("//                       NEMO/YAO PROJECT                             //\n"); 
    93   printf("//                     M. Berrada  02-2009                            //\n"); 
     93  printf("//                     M. Berrada 02-2009                            //\n"); 
    9494  printf("//                  LOCEAN-IPSL.UPMC (Paris 6)                        //\n"); 
    9595  printf("//====================================================================//\n"); 
     96 
     97  //Vérification du type de réel utilisé 
     98#ifdef YFLOAT 
     99#ifndef YYFLOAT 
     100  printf("Incoherent real type between O_REAL option and ncutil.h\n"); 
     101  exit(1); 
     102#endif 
     103#endif 
     104#ifdef YDOUBLE 
     105#ifndef YYDOUBLE 
     106  printf("Incoherent real type between O_REAL option and ncutil.h\n"); 
     107  exit(1); 
     108#endif 
     109#endif 
     110 
    96111  for (int i=0;i<TA+TU;i++) tniter[i]=0;//nmax;// pour backward de solsor_dynspg_flt.h 
    97112  phy_cst(); 
     
    844859      int dimid[4]; 
    845860      strcpy(rest_file,argv[1]); 
    846       rest_file_id=Ouvre_nc_write(rest_file); 
    847       write_rst_global_att(rest_file_id); 
    848       define_dim(rest_file_id,dimid); 
    849       nc_close( rest_file_id);  
    850     } 
    851 } 
     861      rest_file_id=Ouvre_nc_write(rest_file); //Ouvre le fichier netcds pour l'écriture 
     862      write_rst_global_att(rest_file_id); //Ecrit les global attributes 
     863      define_dim(rest_file_id,dimid); //Définit les dimensions 
     864      write_rst_var(TU,rest_file_id,dimid); //Ecrit les variables 
     865      nc_close( rest_file_id); //ferme le fichier 
     866    } 
     867} 
Note: See TracChangeset for help on using the changeset viewer.