Changeset 69
- Timestamp:
- 08/30/11 16:40:09 (13 years ago)
- Location:
- branches/branche-mb/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branche-mb/src/Makefile
r62 r69 2 2 #GENOPT= -E 3 3 GENOPT=-DOPTIMORDER -E 4 YAOPT= -p +O3-x sinobad4 YAOPT= -p -x sinobad 5 5 6 essai: essai.d 6 essai: essai.d ../object/ncutil.o 7 7 ${YAODIR}/etc/YaoI $(YAOPT) essai.d 8 8 … … 14 14 cp -f sinobad.d essai.c 15 15 16 ../object/ncutil.o: 17 cd ../include && $(MAKE) 18 16 19 clean: 17 rm -f essai.c 20 rm -f essai.c* 21 22 rmproper: clean 23 rm -f ../object/ncutil.o -
branches/branche-mb/src/cost.dat
r68 r69 3 3 0.0000000000000000e+00 4 4 2.1474823164582097e+02 5 1.2274234090104164e+016 2.3881198434552111e+017 8.8771059162513382e+008 5.5557975737505458e+009 3.4803779742760317e+0010 1.7128978455386892e+0011 1.1973455752757605e+0012 9.8335187344394392e-0113 7.6117334075192200e-0114 5.9846985043808543e-0115 6.7366624706570466e-0116 5.5874401856066103e-0117 7.3595639204467600e-0118 5.0953722678532765e-0119 1.1965283691171660e+0020 6.5986339544255534e-0121 6.6013045954860117e-0122 6.5392286280927792e-0123 5.6394373996837344e-0124 5.7610237016601717e-0125 5.8032116526810040e-0126 5.8309360765246787e-0127 5.8519910883568982e-0128 5.8664512715255190e-0129 5.8761359807265934e-0130 5.8831541023256795e-0131 5.8880781610867361e-0132 5.8915693207370023e-0133 5.0893021741293576e-0134 5.0885469878063883e-0135 5.8920763747258753e-0136 5.0875296736771736e-0137 5.0874187732734499e-0138 5.8921509431560293e-0139 5.8922030000369108e-0140 5.8922395197080846e-0141 5.8922651344473387e-01 -
branches/branche-mb/src/sbcgyre_emp1.h
r1 r69 17 17 else{ 18 18 // ! 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) 20 20 - (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) 22 24 double ztimemax1 = ((5.*30.)+21.)* 24.;// ! 21th june at 24h in hours 23 25 double ztimemin1 = ztimemax1 + rjjhh * raajj / 2.;// ! 21th december in hours -
branches/branche-mb/src/sbcgyre_qsr_qns.h
r1 r69 24 24 else{ 25 25 // ! 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) 27 30 - (nyear - 1) * rjjhh * raajj; // ! minus years since beginning of experiment (in hours) 28 29 31 double ztimemax1 = ((5.*30.)+21.)* 24.;// ! 21th june at 24h in hours 30 32 double ztimemin1 = ztimemax1 + rjjhh * raajj / 2.;// ! 21th december in hours -
branches/branche-mb/src/sbcgyre_utau_vtau.h
r9 r69 19 19 // !accumulates days of previous months of this year 20 20 // ! 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 22 24 - (nyear - 1) * rjjhh * raajj;// ! - nber of hours the precedent years 23 25 double ztimemax = ((5.*30.)+21.)* 24.;// ! 21th june in hours -
branches/branche-mb/src/sinobad.d
r68 r69 1 1 //defval K_NEU 2 #define FZIMP2 //#define FZIMP 3 3 #define FILTER 4 4 #define FILZNOL … … 30 30 #endif 31 31 //#exec disp_valdef 32 #ifdef FZIMP 32 #ifdef FZIMP //Filtre Z implicit 33 33 defval K_FZIMP 34 34 #endif 35 #ifdef FILTER 35 #ifdef FILTER //Filtre 36 36 defval K_FILTER 37 37 #endif 38 #ifdef FILZNOL 38 #ifdef FILZNOL //uniquement Filtre Z 39 39 defval K_FILZNOL 40 40 #endif 41 #ifdef FILLNOZ 41 #ifdef FILLNOZ //uniquement Filtre L 42 42 defval K_FILLNOZ 43 43 #endif … … 61 61 option O_EXTOBJ "../object/ncutil.o" 62 62 option O_REAL double 63 option o_parallel 1663 option o_parallel 64 64 65 65 //#TRAJECTOIRES (DIM) -----------------------------------TRAJ … … 1218 1218 insert_fct arg xwritegrad 1219 1219 insert_fct arg xinitnc 1220 insert_fct arg init_euler 1220 1221 //#insert_fct arg load_shape_func 1221 1222 //#insert_fct arg load_stdev_pca -
branches/branche-mb/src/sinobad.h
r68 r69 60 60 int nksr; 61 61 void xtraqsr_init();// init of solar radiation penetration 62 62 double Ytold; //pour voir se pas de temps 63 double ktinit; //premier pas ocean 63 64 # define rdttra( k ) rdt 64 65 double r2dt; … … 165 166 xdisplay(); 166 167 xtraqsr_init(); 168 ktinit=0; //A mettre dans la namelist ???? 167 169 } 168 170 //____________________________________________________________________________ … … 178 180 fprintf(p,"%23.16e\n",YTotalCost); 179 181 fclose(p); 182 Ytold=Yt; 183 kt=ktinit; 180 184 } 181 185 //_____________________________________________________________________________ … … 195 199 void forward_before (int ctrp) 196 200 { // permet d'intervenir si besoin avant le forward 201 202 203 kt=ktinit + (Yt-TU); 204 printf("kt=%lf\n",kt); 197 205 if(Yt==TU+1 && neuler==0) 198 206 r2dt=rdt; … … 203 211 void forward_after (int ctrp) 204 212 { // permet d'intervenir si besoin aprÚs le forward 213 //printf("neuler=%d\n",neuler); 205 214 } 206 215 //_____________________________________________________________________________ … … 1141 1150 1142 1151 } 1152 1153 void 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.