Changeset 69


Ignore:
Timestamp:
08/30/11 16:40:09 (13 years ago)
Author:
berrada
Message:

fusion tronc dans mb-branche

Location:
branches/branche-mb/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/branche-mb/src/Makefile

    r62 r69  
    22#GENOPT= -E 
    33GENOPT=-DOPTIMORDER -E 
    4 YAOPT=  -p +O3 -x sinobad 
     4YAOPT=  -p -x sinobad 
    55 
    6 essai: essai.d 
     6essai: essai.d ../object/ncutil.o 
    77        ${YAODIR}/etc/YaoI  $(YAOPT) essai.d 
    88 
     
    1414        cp -f sinobad.d essai.c 
    1515 
     16../object/ncutil.o: 
     17         cd ../include && $(MAKE) 
     18 
    1619clean: 
    17         rm -f essai.c 
     20        rm -f essai.c* 
     21 
     22rmproper: clean 
     23        rm -f ../object/ncutil.o 
  • branches/branche-mb/src/cost.dat

    r68 r69  
    33 0.0000000000000000e+00 
    44 2.1474823164582097e+02 
    5  1.2274234090104164e+01 
    6  2.3881198434552111e+01 
    7  8.8771059162513382e+00 
    8  5.5557975737505458e+00 
    9  3.4803779742760317e+00 
    10  1.7128978455386892e+00 
    11  1.1973455752757605e+00 
    12  9.8335187344394392e-01 
    13  7.6117334075192200e-01 
    14  5.9846985043808543e-01 
    15  6.7366624706570466e-01 
    16  5.5874401856066103e-01 
    17  7.3595639204467600e-01 
    18  5.0953722678532765e-01 
    19  1.1965283691171660e+00 
    20  6.5986339544255534e-01 
    21  6.6013045954860117e-01 
    22  6.5392286280927792e-01 
    23  5.6394373996837344e-01 
    24  5.7610237016601717e-01 
    25  5.8032116526810040e-01 
    26  5.8309360765246787e-01 
    27  5.8519910883568982e-01 
    28  5.8664512715255190e-01 
    29  5.8761359807265934e-01 
    30  5.8831541023256795e-01 
    31  5.8880781610867361e-01 
    32  5.8915693207370023e-01 
    33  5.0893021741293576e-01 
    34  5.0885469878063883e-01 
    35  5.8920763747258753e-01 
    36  5.0875296736771736e-01 
    37  5.0874187732734499e-01 
    38  5.8921509431560293e-01 
    39  5.8922030000369108e-01 
    40  5.8922395197080846e-01 
    41  5.8922651344473387e-01 
  • branches/branche-mb/src/sbcgyre_emp1.h

    r1 r69  
    1717  else{ 
    1818    //      ! current day (in hours) since january the 1st of the current year 
    19     double  ztime = double(Yt-TU) * rdt / (rmmss * rhhmm)  //       !  total incrementation (in hours) 
     19    /*    double  ztime = double(Yt-TU) * rdt / (rmmss * rhhmm)  //       !  total incrementation (in hours) 
    2020      - (nyear  - 1) * rjjhh * raajj;  //           !  minus years since beginning of experiment (in hours) 
    21      
     21    */ 
     22    double  ztime = kt * rdt / (rmmss * rhhmm)  //       !  total incrementation (in hours) 
     23      - (nyear  - 1) * rjjhh * raajj;  //           !  minus years since beginning of experiment (in hours) 
    2224    double  ztimemax1 = ((5.*30.)+21.)* 24.;//                     ! 21th june     at 24h in hours 
    2325    double  ztimemin1 = ztimemax1 + rjjhh * raajj / 2.;//            ! 21th december        in hours 
  • branches/branche-mb/src/sbcgyre_qsr_qns.h

    r1 r69  
    2424  else{ 
    2525    //      ! current day (in hours) since january the 1st of the current year 
    26     double  ztime = double(Yt-TU) * rdt / (rmmss * rhhmm)  //       !  total incrementation (in hours) 
     26    /*    double  ztime = double(Yt-TU) * rdt / (rmmss * rhhmm)  //       !  total incrementation (in hours) 
     27          - (nyear  - 1) * rjjhh * raajj;  //           !  minus years since beginning of experiment (in hours) 
     28    */ 
     29    double  ztime = kt * rdt / (rmmss * rhhmm)  //       !  total incrementation (in hours) 
    2730      - (nyear  - 1) * rjjhh * raajj;  //           !  minus years since beginning of experiment (in hours) 
    28      
    2931    double  ztimemax1 = ((5.*30.)+21.)* 24.;//                     ! 21th june     at 24h in hours 
    3032    double  ztimemin1 = ztimemax1 + rjjhh * raajj / 2.;//            ! 21th december        in hours 
  • branches/branche-mb/src/sbcgyre_utau_vtau.h

    r9 r69  
    1919    //      !accumulates days of previous months of this year 
    2020    //      ! day (in hours) since january the 1st 
    21     double  ztime = float(Yt-TU)*rdt/(rmmss*rhhmm)//  ! incrementation in hour 
     21    /*    double  ztime = float(Yt-TU)*rdt/(rmmss*rhhmm)//  ! incrementation in hour 
     22          - (nyear - 1) * rjjhh * raajj;//         !  - nber of hours the precedent years */ 
     23    double  ztime =  kt*rdt/(rmmss*rhhmm)//  ! incrementation in hour 
    2224      - (nyear - 1) * rjjhh * raajj;//         !  - nber of hours the precedent years 
    2325    double  ztimemax = ((5.*30.)+21.)* 24.;//               ! 21th june     in hours 
  • branches/branche-mb/src/sinobad.d

    r68 r69  
    11//defval K_NEU 
    2 #define FZIMP 
     2//#define FZIMP 
    33#define FILTER 
    44#define FILZNOL 
     
    3030#endif 
    3131//#exec disp_valdef 
    32 #ifdef FZIMP 
     32#ifdef FZIMP //Filtre Z implicit 
    3333defval K_FZIMP 
    3434#endif 
    35 #ifdef FILTER 
     35#ifdef FILTER //Filtre 
    3636defval K_FILTER 
    3737#endif 
    38 #ifdef FILZNOL 
     38#ifdef FILZNOL //uniquement Filtre Z 
    3939defval K_FILZNOL 
    4040#endif 
    41 #ifdef FILLNOZ 
     41#ifdef FILLNOZ //uniquement Filtre L 
    4242defval K_FILLNOZ 
    4343#endif 
     
    6161option  O_EXTOBJ "../object/ncutil.o" 
    6262option O_REAL double 
    63 option o_parallel 16 
     63option o_parallel 
    6464 
    6565//#TRAJECTOIRES (DIM) -----------------------------------TRAJ 
     
    12181218insert_fct arg xwritegrad 
    12191219insert_fct arg xinitnc 
     1220insert_fct arg init_euler 
    12201221//#insert_fct  arg load_shape_func 
    12211222//#insert_fct  arg load_stdev_pca 
  • branches/branche-mb/src/sinobad.h

    r68 r69  
    6060int nksr; 
    6161void xtraqsr_init();// init of solar radiation penetration 
    62  
     62double Ytold; //pour voir se pas de temps 
     63double ktinit; //premier pas ocean 
    6364#   define  rdttra( k ) rdt 
    6465double r2dt; 
     
    165166  xdisplay(); 
    166167  xtraqsr_init(); 
     168  ktinit=0; //A mettre dans la namelist ???? 
    167169} 
    168170//____________________________________________________________________________ 
     
    178180  fprintf(p,"%23.16e\n",YTotalCost); 
    179181  fclose(p); 
     182  Ytold=Yt; 
     183  kt=ktinit; 
    180184} 
    181185//_____________________________________________________________________________ 
     
    195199void forward_before (int ctrp) 
    196200{       // permet d'intervenir si besoin avant le forward 
     201  
     202 
     203  kt=ktinit + (Yt-TU); 
     204  printf("kt=%lf\n",kt); 
    197205    if(Yt==TU+1 && neuler==0) 
    198206      r2dt=rdt; 
     
    203211void forward_after (int ctrp) 
    204212{                       // permet d'intervenir si besoin aprÚs le forward 
     213  //printf("neuler=%d\n",neuler); 
    205214} 
    206215//_____________________________________________________________________________ 
     
    11411150   
    11421151} 
     1152 
     1153void init_euler(int argc, char *argv[]){ 
     1154  if (argc!=2) 
     1155    { 
     1156      printf("\nwrong number of argument in init_euler : specify 0 or 1\n"); 
     1157      exit(1); 
     1158    } 
     1159  else 
     1160    { 
     1161      int n; 
     1162      n=atoi(argv[1]); 
     1163      if(n!=0 && n!=1) 
     1164        { 
     1165          printf("\nwrong argument in init_euler : specify 0 or 1 in command init_euler\n"); 
     1166          exit(1); 
     1167        } 
     1168      neuler=n; 
     1169    } 
     1170} 
Note: See TracChangeset for help on using the changeset viewer.