Changeset 1378 for IOIPSL/trunk
- Timestamp:
- 04/20/11 12:08:00 (13 years ago)
- Location:
- IOIPSL/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
IOIPSL/trunk/src/calendar.f90
r1011 r1378 40 40 !--------------------------------------------------------------------- 41 41 USE stringop,ONLY : strlowercase 42 USE errioipsl,ONLY : ipslerr 42 USE errioipsl,ONLY : ipslerr, ipslout 43 43 !- 44 44 PRIVATE … … 354 354 tmp_str = input_str 355 355 DO WHILE ( MAX(y_pos,m_pos,d_pos,s_pos) > 0) 356 !---- WRITE( *,*) tmp_str357 !---- WRITE( *,*) y_pos,m_pos,d_pos,s_pos356 !---- WRITE(ipslout,*) tmp_str 357 !---- WRITE(ipslout,*) y_pos,m_pos,d_pos,s_pos 358 358 IF (y_pos > 0) THEN 359 359 WRITE(fmt,'("(I",I10.10,")")') y_pos-1 … … 533 533 !--------------------------------------------------------------------- 534 534 IF (check) THEN 535 WRITE( *,*) &535 WRITE(ipslout,*) & 536 536 & "isittime 1.0 ",itau,date0,dt,freq,last_action,last_check 537 537 ENDIF … … 605 605 do_action = .TRUE. 606 606 IF (check) THEN 607 WRITE( *,*) &607 WRITE(ipslout,*) & 608 608 & 'ACT-TIME : itau, next_act_itau, next_check_itau : ', & 609 609 & itau,next_act_itau,next_check_itau 610 610 CALL ju2ymds (date_now,year,month,day,sec) 611 WRITE( *,*) 'ACT-TIME : y, m, d, s : ',year,month,day,sec612 WRITE( *,*) &611 WRITE(ipslout,*) 'ACT-TIME : y, m, d, s : ',year,month,day,sec 612 WRITE(ipslout,*) & 613 613 & 'ACT-TIME : date_mp1, date_mpf : ',date_mp1,date_mpf 614 614 ENDIF … … 619 619 !- 620 620 IF (check) THEN 621 WRITE( *,*) "isittime 2.0 ", &621 WRITE(ipslout,*) "isittime 2.0 ", & 622 622 & date_next_check,date_next_act,ABS(dt_action-freq), & 623 623 & ABS(dt_action+dt_check-freq),dt_action,dt_check, & -
IOIPSL/trunk/src/flincom.f90
r1377 r1378 9 9 !- 10 10 USE calendar, ONLY : ju2ymds, ymds2ju, ioconf_calendar 11 USE errioipsl, ONLY : histerr 11 USE errioipsl, ONLY : histerr, ipslout 12 12 USE stringop, ONLY : strlowercase 13 13 !- … … 193 193 ! Vertical axis 194 194 !- 195 IF (check) WRITE( *,*) 'flincre Vertical axis'195 IF (check) WRITE(ipslout,*) 'flincre Vertical axis' 196 196 !- 197 197 iret = NF90_DEF_VAR (fid, 'lev', NF90_FLOAT, zdimid1, levid) … … 202 202 ! Time axis 203 203 !- 204 IF (check) WRITE( *,*) 'flincre time axis'204 IF (check) WRITE(ipslout,*) 'flincre time axis' 205 205 !- 206 206 iret = NF90_DEF_VAR (fid, 'tstep', NF90_FLOAT, tdimid1, timeid) … … 211 211 ! The longitude 212 212 !- 213 IF (check) WRITE( *,*) 'flincre Longitude axis'213 IF (check) WRITE(ipslout,*) 'flincre Longitude axis' 214 214 !- 215 215 iret = NF90_DEF_VAR (fid, "nav_lon", NF90_FLOAT, & … … 226 226 ! The Latitude 227 227 !- 228 IF (check) WRITE( *,*) 'flincre Latitude axis'228 IF (check) WRITE(ipslout,*) 'flincre Latitude axis' 229 229 !- 230 230 iret = NF90_DEF_VAR (fid, "nav_lat", NF90_FLOAT, & … … 253 253 iret = NF90_ENDDEF (fid) 254 254 !- 255 IF (check) WRITE( *,*) 'flincre Variable'255 IF (check) WRITE(ipslout,*) 'flincre Variable' 256 256 !- 257 257 iret = NF90_PUT_VAR (fid, levid, lev1(1:llm1)) 258 258 !- 259 IF (check) WRITE( *,*) 'flincre Time Variable'259 IF (check) WRITE(ipslout,*) 'flincre Time Variable' 260 260 !- 261 261 iret = NF90_PUT_VAR (fid, timeid, REAL(itaus(1:ttm1))) 262 262 !- 263 IF (check) WRITE( *,*) 'flincre Longitude'263 IF (check) WRITE(ipslout,*) 'flincre Longitude' 264 264 !- 265 265 iret = NF90_PUT_VAR (fid, lonid, lon1(1:iim1,1:jjm1)) 266 266 !- 267 IF (check) WRITE( *,*) 'flincre Latitude'267 IF (check) WRITE(ipslout,*) 'flincre Latitude' 268 268 !- 269 269 iret = NF90_PUT_VAR (fid, latid, lat1(1:iim1,1:jjm1)) … … 423 423 !- 424 424 IF (check) & 425 WRITE( *,*) 'OUT OF flininfo :',tmp_iim,tmp_jjm,tmp_llm,tmp_ttm425 WRITE(ipslout,*) 'OUT OF flininfo :',tmp_iim,tmp_jjm,tmp_llm,tmp_ttm 426 426 !- 427 427 fid = ncids(fid_out) … … 433 433 !- 434 434 IF (check) & 435 WRITE( *,*) 'flininfo 2.2 We test if we have to test : ',do_test435 WRITE(ipslout,*) 'flininfo 2.2 We test if we have to test : ',do_test 436 436 !- 437 437 IF (do_test) THEN … … 453 453 !-- 2.3 Else the sizes of the axes are returned to the user 454 454 !--- 455 IF (check) WRITE( *,*) 'flinopen 2.3 Else sizes are returned'455 IF (check) WRITE(ipslout,*) 'flinopen 2.3 Else sizes are returned' 456 456 !--- 457 457 iim = tmp_iim … … 465 465 ! if not then we get the lon, lat and lev variables from the file 466 466 !- 467 IF (check) WRITE( *,*) 'flinopen 3.0 we are realy talking'467 IF (check) WRITE(ipslout,*) 'flinopen 3.0 we are realy talking' 468 468 !- 469 469 IF (do_test) THEN … … 474 474 !--- 475 475 IF (check) & 476 WRITE( *,*) 'from file lon first and last, modulo 360. ', &476 WRITE(ipslout,*) 'from file lon first and last, modulo 360. ', & 477 477 x_first, x_last, MODULO(x_first,360.), MODULO(x_last,360.) 478 478 IF (check) & 479 WRITE( *,*) 'from model lon first and last, modulo 360. ', &479 WRITE(ipslout,*) 'from model lon first and last, modulo 360. ', & 480 480 lon(1,1),lon(iilen,jjlen), & 481 481 MODULO(lon(1,1),360.), MODULO(lon(iilen,jjlen),360.) … … 494 494 iret = NF90_GET_VAR (fid, vid, x_last, start=(/ iilast, jjlast /)) 495 495 !--- 496 IF (check) WRITE( *,*) &496 IF (check) WRITE(ipslout,*) & 497 497 'from file lat first and last ',x_first,x_last 498 IF (check) WRITE( *,*) &498 IF (check) WRITE(ipslout,*) & 499 499 'from model lat first and last ',lat(1,1),lat(iilen,jjlen) 500 500 !--- … … 512 512 iret = NF90_GET_VAR (fid, vid, x_last, start=(/ llm /)) 513 513 !----- 514 IF (check) WRITE( *,*) &514 IF (check) WRITE(ipslout,*) & 515 515 'from file lev first and last ',x_first ,x_last 516 IF (check) WRITE( *,*) &516 IF (check) WRITE(ipslout,*) & 517 517 'from model lev first and last ',lev(1),lev(llm) 518 518 !----- … … 530 530 !-- 4.0 extracting the coordinates if we do not check 531 531 !--- 532 IF (check) WRITE( *,*) 'flinopen 4.0 extracting the coordinates'532 IF (check) WRITE(ipslout,*) 'flinopen 4.0 extracting the coordinates' 533 533 !--- 534 534 CALL flinfindcood (fid_out, 'lon', vid, nbdim) … … 575 575 ! 5.0 Get all the details for the time if possible needed 576 576 !- 577 IF (check) WRITE( *,*) 'flinopen 5.0 Get time'577 IF (check) WRITE(ipslout,*) 'flinopen 5.0 Get time' 578 578 !- 579 579 IF (ttm > 0) THEN … … 609 609 DEALLOCATE(vec_tmp) 610 610 !--- 611 IF (check) WRITE( *,*) 'flinopen 5.1 Times ',itaus611 IF (check) WRITE(ipslout,*) 'flinopen 5.1 Times ',itaus 612 612 !--- 613 613 !-- Getting all the details for the time axis … … 630 630 CALL ymds2ju (year0, month0, day0, sec0, date0) 631 631 IF (check) & 632 WRITE( *,*) 'flinopen 5.1 gdtt_id year0 ... date0 ', &632 WRITE(ipslout,*) 'flinopen 5.1 gdtt_id year0 ... date0 ', & 633 633 year0, month0, day0, sec0, date0 634 634 !----- … … 643 643 !----- 644 644 IF (check) & 645 WRITE( *,*) 'flinopen 5.1 gdtmaf_id year0 ... date0 ', &645 WRITE(ipslout,*) 'flinopen 5.1 gdtmaf_id year0 ... date0 ', & 646 646 year0, month0, day0, sec0, date0 647 647 ELSE IF (old_id > 0) THEN … … 660 660 ENDIF 661 661 !- 662 IF (check) WRITE( *,*) 'flinopen 6.0 File opened', date0, dt662 IF (check) WRITE(ipslout,*) 'flinopen 6.0 File opened', date0, dt 663 663 !--------------------------- 664 664 END SUBROUTINE flinopen_work … … 716 716 axname = ADJUSTL(axname) 717 717 !--- 718 IF (check) WRITE( *,*) &718 IF (check) WRITE(ipslout,*) & 719 719 'flininfo - getting axname',iv,axname,lll 720 720 !--- … … 780 780 LOGICAL :: check = .FALSE. 781 781 !--------------------------------------------------------------------- 782 IF (check) WRITE( *,*) &782 IF (check) WRITE(ipslout,*) & 783 783 "flinput_r1d : SIZE(var) = ",SIZE(var) 784 784 !- … … 807 807 LOGICAL :: check = .FALSE. 808 808 !--------------------------------------------------------------------- 809 IF (check) WRITE( *,*) &809 IF (check) WRITE(ipslout,*) & 810 810 "flinput_r2d : SIZE(var) = ",SIZE(var) 811 811 !- … … 834 834 LOGICAL :: check = .FALSE. 835 835 !--------------------------------------------------------------------- 836 IF (check) WRITE( *,*) &836 IF (check) WRITE(ipslout,*) & 837 837 "flinput_r3d : SIZE(var) = ",SIZE(var) 838 838 !- … … 861 861 LOGICAL :: check = .FALSE. 862 862 !--------------------------------------------------------------------- 863 IF (check) WRITE( *,*) &863 IF (check) WRITE(ipslout,*) & 864 864 "flinput_r4d : SIZE(var) = ",SIZE(var) 865 865 !- … … 961 961 !--------------------------------------------------------------------- 962 962 IF (.NOT.ALLOCATED(buff_tmp)) THEN 963 IF (check) WRITE( *,*) &963 IF (check) WRITE(ipslout,*) & 964 964 "flinget_r1d : allocate buff_tmp for buff_sz = ",SIZE(var) 965 965 ALLOCATE (buff_tmp(SIZE(var))) 966 966 ELSE IF (SIZE(var) > SIZE(buff_tmp)) THEN 967 IF (check) WRITE( *,*) &967 IF (check) WRITE(ipslout,*) & 968 968 "flinget_r1d : re-allocate buff_tmp for buff_sz = ",SIZE(var) 969 969 DEALLOCATE (buff_tmp) … … 999 999 !--------------------------------------------------------------------- 1000 1000 IF (.NOT.ALLOCATED(buff_tmp)) THEN 1001 IF (check) WRITE( *,*) &1001 IF (check) WRITE(ipslout,*) & 1002 1002 "flinget_r2d : allocate buff_tmp for buff_sz = ",SIZE(var) 1003 1003 ALLOCATE (buff_tmp(SIZE(var))) 1004 1004 ELSE IF (SIZE(var) > SIZE(buff_tmp)) THEN 1005 IF (check) WRITE( *,*) &1005 IF (check) WRITE(ipslout,*) & 1006 1006 "flinget_r2d : re-allocate buff_tmp for buff_sz = ",SIZE(var) 1007 1007 DEALLOCATE (buff_tmp) … … 1040 1040 !--------------------------------------------------------------------- 1041 1041 IF (.NOT.ALLOCATED(buff_tmp)) THEN 1042 IF (check) WRITE( *,*) &1042 IF (check) WRITE(ipslout,*) & 1043 1043 "flinget_r2d_zoom : allocate buff_tmp for buff_sz = ",SIZE(var) 1044 1044 ALLOCATE (buff_tmp(SIZE(var))) 1045 1045 ELSE IF (SIZE(var) > SIZE(buff_tmp)) THEN 1046 IF (check) WRITE( *,*) &1046 IF (check) WRITE(ipslout,*) & 1047 1047 "flinget_r2d_zoom : re-allocate buff_tmp for buff_sz = ",SIZE(var) 1048 1048 DEALLOCATE (buff_tmp) … … 1080 1080 !--------------------------------------------------------------------- 1081 1081 IF (.NOT.ALLOCATED(buff_tmp)) THEN 1082 IF (check) WRITE( *,*) &1082 IF (check) WRITE(ipslout,*) & 1083 1083 "flinget_r3d : allocate buff_tmp for buff_sz = ",SIZE(var) 1084 1084 ALLOCATE (buff_tmp(SIZE(var))) 1085 1085 ELSE IF (SIZE(var) > SIZE(buff_tmp)) THEN 1086 IF (check) WRITE( *,*) &1086 IF (check) WRITE(ipslout,*) & 1087 1087 "flinget_r3d : re-allocate buff_tmp for buff_sz = ",SIZE(var) 1088 1088 DEALLOCATE (buff_tmp) … … 1123 1123 !--------------------------------------------------------------------- 1124 1124 IF (.NOT.ALLOCATED(buff_tmp)) THEN 1125 IF (check) WRITE( *,*) &1125 IF (check) WRITE(ipslout,*) & 1126 1126 "flinget_r3d_zoom : allocate buff_tmp for buff_sz = ",SIZE(var) 1127 1127 ALLOCATE (buff_tmp(SIZE(var))) 1128 1128 ELSE IF (SIZE(var) > SIZE(buff_tmp)) THEN 1129 IF (check) WRITE( *,*) &1129 IF (check) WRITE(ipslout,*) & 1130 1130 "flinget_r3d_zoom : re-allocate buff_tmp for buff_sz = ",SIZE(var) 1131 1131 DEALLOCATE (buff_tmp) … … 1165 1165 !--------------------------------------------------------------------- 1166 1166 IF (.NOT.ALLOCATED(buff_tmp)) THEN 1167 IF (check) WRITE( *,*) &1167 IF (check) WRITE(ipslout,*) & 1168 1168 "flinget_r4d : allocate buff_tmp for buff_sz = ",SIZE(var) 1169 1169 ALLOCATE (buff_tmp(SIZE(var))) 1170 1170 ELSE IF (SIZE(var) > SIZE(buff_tmp)) THEN 1171 IF (check) WRITE( *,*) &1171 IF (check) WRITE(ipslout,*) & 1172 1172 "flinget_r4d : re-allocate buff_tmp for buff_sz = ",SIZE(var) 1173 1173 DEALLOCATE (buff_tmp) … … 1210 1210 !--------------------------------------------------------------------- 1211 1211 IF (.NOT.ALLOCATED(buff_tmp)) THEN 1212 IF (check) WRITE( *,*) &1212 IF (check) WRITE(ipslout,*) & 1213 1213 "flinget_r4d_zoom : allocate buff_tmp for buff_sz = ",SIZE(var) 1214 1214 ALLOCATE (buff_tmp(SIZE(var))) 1215 1215 ELSE IF (SIZE(var) > SIZE(buff_tmp)) THEN 1216 IF (check) WRITE( *,*) &1216 IF (check) WRITE(ipslout,*) & 1217 1217 "flinget_r4d_zoom : re-allocate buff_tmp for buff_sz = ",SIZE(var) 1218 1218 DEALLOCATE (buff_tmp) … … 1309 1309 !- 1310 1310 IF (check) THEN 1311 WRITE( *,*) &1311 WRITE(ipslout,*) & 1312 1312 'flinget_mat : fid_in, fid, varname :', fid_in, fid, TRIM(varname) 1313 WRITE( *,*) &1313 WRITE(ipslout,*) & 1314 1314 'flinget_mat : iim, jjm, llm, ttm, itau_dep, itau_fin :', & 1315 1315 iim, jjm, llm, ttm, itau_dep, itau_fin 1316 WRITE( *,*) &1316 WRITE(ipslout,*) & 1317 1317 'flinget_mat : iideb, iilen, jjdeb, jjlen :', & 1318 1318 iideb, iilen, jjdeb, jjlen … … 1336 1336 ndims=ndims, dimids=dimids, nAtts=nb_atts) 1337 1337 IF (check) THEN 1338 WRITE( *,*) &1338 WRITE(ipslout,*) & 1339 1339 'flinget_mat : fid, vid :', fid, vid 1340 WRITE( *,*) &1340 WRITE(ipslout,*) & 1341 1341 'flinget_mat : ndims, dimids(1:ndims), nb_atts :', & 1342 1342 ndims, dimids(1:ndims), nb_atts … … 1347 1347 iret = NF90_INQUIRE_DIMENSION (fid, dimids(i), len=w_dim(i)) 1348 1348 ENDDO 1349 IF (check) WRITE( *,*) &1349 IF (check) WRITE(ipslout,*) & 1350 1350 'flinget_mat : w_dim :', w_dim(1:ndims) 1351 1351 !- … … 1354 1354 IF (nb_atts > 0) THEN 1355 1355 IF (check) THEN 1356 WRITE( *,*) 'flinget_mat : attributes for variable :'1356 WRITE(ipslout,*) 'flinget_mat : attributes for variable :' 1357 1357 ENDIF 1358 1358 ENDIF … … 1365 1365 iret = NF90_GET_ATT (fid, vid, att_n, tmp_i) 1366 1366 IF (check) THEN 1367 WRITE( *,*) ' ',TRIM(att_n),' : ',tmp_i1367 WRITE(ipslout,*) ' ',TRIM(att_n),' : ',tmp_i 1368 1368 ENDIF 1369 1369 ELSE IF ( (x_typ == NF90_FLOAT).OR.(x_typ == NF90_DOUBLE) ) THEN 1370 1370 iret = NF90_GET_ATT (fid, vid, att_n, tmp_r) 1371 1371 IF (check) THEN 1372 WRITE( *,*) ' ',TRIM(att_n),' : ',tmp_r1372 WRITE(ipslout,*) ' ',TRIM(att_n),' : ',tmp_r 1373 1373 ENDIF 1374 1374 IF (index(att_n,'missing_value') > 0) THEN … … 1379 1379 iret = NF90_GET_ATT (fid, vid, att_n, tmp_n) 1380 1380 IF (check) THEN 1381 WRITE( *,*) ' ',TRIM(att_n),' : ',TRIM(tmp_n)1381 WRITE(ipslout,*) ' ',TRIM(att_n),' : ',TRIM(tmp_n) 1382 1382 ENDIF 1383 1383 IF (index(att_n,'axis') > 0) THEN … … 1402 1402 iret = NF90_INQ_VARID (fid, tmp_n, cvid) 1403 1403 !--- 1404 IF (check) WRITE( *,*) &1404 IF (check) WRITE(ipslout,*) & 1405 1405 'Dimname, iret , NF90_NOERR : ',TRIM(tmp_n),iret,NF90_NOERR 1406 1406 !--- … … 1559 1559 ! 3.0 Reading the data 1560 1560 !- 1561 IF (check) WRITE( *,*) &1561 IF (check) WRITE(ipslout,*) & 1562 1562 'flinget_mat 3.0 : ', uncompress, w_sta, w_len 1563 1563 !--- … … 1584 1584 ENDIF 1585 1585 !- 1586 IF (check) WRITE( *,*) 'flinget_mat 3.1 : ',NF90_STRERROR (iret)1586 IF (check) WRITE(ipslout,*) 'flinget_mat 3.1 : ',NF90_STRERROR (iret) 1587 1587 !-------------------------- 1588 1588 END SUBROUTINE flinget_mat -
IOIPSL/trunk/src/fliocom.f90
r965 r1378 11 11 USE calendar, ONLY : lock_calendar,ioget_calendar, & 12 12 & ioconf_calendar,ju2ymds,ymds2ju 13 USE errioipsl, ONLY : ipslerr,ipsldbg 13 USE errioipsl, ONLY : ipslerr,ipsldbg, ipslout 14 14 USE stringop, ONLY : strlowercase,str_xfw 15 15 !- … … 867 867 !- 868 868 IF (l_dbg) THEN 869 WRITE( *,*) "->fliocrfd - file name : ",TRIM(f_n)869 WRITE(ipslout,*) "->fliocrfd - file name : ",TRIM(f_n) 870 870 ENDIF 871 871 !- … … 990 990 !- 991 991 IF (l_dbg) THEN 992 WRITE( *,*) ' fliocrfd, external model file-id : ',f_e992 WRITE(ipslout,*) ' fliocrfd, external model file-id : ',f_e 993 993 ENDIF 994 994 !- … … 1040 1040 !- 1041 1041 IF (l_dbg) THEN 1042 WRITE( *,*) '<-fliocrfd'1042 WRITE(ipslout,*) '<-fliocrfd' 1043 1043 ENDIF 1044 1044 !---------------------- … … 1074 1074 !- 1075 1075 IF (l_dbg) THEN 1076 WRITE( *,*) "->fliopstc"1076 WRITE(ipslout,*) "->fliopstc" 1077 1077 ENDIF 1078 1078 !- … … 1100 1100 !--- 1101 1101 IF (l_dbg) THEN 1102 WRITE( *,*) ' fliopstc : Define the Longitude axis'1102 WRITE(ipslout,*) ' fliopstc : Define the Longitude axis' 1103 1103 ENDIF 1104 1104 !--- … … 1144 1144 !--- 1145 1145 IF (l_dbg) THEN 1146 WRITE( *,*) ' fliopstc : Define the Latitude axis'1146 WRITE(ipslout,*) ' fliopstc : Define the Latitude axis' 1147 1147 ENDIF 1148 1148 !--- … … 1188 1188 !--- 1189 1189 IF (l_dbg) THEN 1190 WRITE( *,*) ' fliopstc : Define the Vertical axis'1190 WRITE(ipslout,*) ' fliopstc : Define the Vertical axis' 1191 1191 ENDIF 1192 1192 !--- … … 1219 1219 !--- 1220 1220 IF (l_dbg) THEN 1221 WRITE( *,*) ' fliopstc : Define the Time axis'1221 WRITE(ipslout,*) ' fliopstc : Define the Time axis' 1222 1222 ENDIF 1223 1223 !--- … … 1317 1317 IF (PRESENT(x_axis).OR.PRESENT(x_axis_2d)) THEN 1318 1318 IF (l_dbg) THEN 1319 WRITE( *,*) ' fliopstc : Create the Longitude axis'1319 WRITE(ipslout,*) ' fliopstc : Create the Longitude axis' 1320 1320 ENDIF 1321 1321 IF (PRESENT(x_axis)) THEN … … 1330 1330 IF (PRESENT(y_axis).OR.PRESENT(y_axis_2d)) THEN 1331 1331 IF (l_dbg) THEN 1332 WRITE( *,*) ' fliopstc : Create the Latitude axis'1332 WRITE(ipslout,*) ' fliopstc : Create the Latitude axis' 1333 1333 ENDIF 1334 1334 IF (PRESENT(y_axis)) THEN … … 1343 1343 IF (PRESENT(z_axis)) THEN 1344 1344 IF (l_dbg) THEN 1345 WRITE( *,*) ' fliopstc : Create the Vertical axis'1345 WRITE(ipslout,*) ' fliopstc : Create the Vertical axis' 1346 1346 ENDIF 1347 1347 i_rc = NF90_PUT_VAR(f_e,levid,z_axis(:)) … … 1352 1352 IF (PRESENT(t_axis)) THEN 1353 1353 IF (l_dbg) THEN 1354 WRITE( *,*) ' fliopstc : Create the Time axis'1354 WRITE(ipslout,*) ' fliopstc : Create the Time axis' 1355 1355 ENDIF 1356 1356 i_rc = NF90_PUT_VAR(f_e,timeid,REAL(t_axis(:))) … … 1362 1362 !- 1363 1363 IF (l_dbg) THEN 1364 WRITE( *,*) "<-fliopstc"1364 WRITE(ipslout,*) "<-fliopstc" 1365 1365 ENDIF 1366 1366 !---------------------- … … 1428 1428 !- 1429 1429 IF (l_dbg) THEN 1430 WRITE( *,*) "->fliodefv ",TRIM(v_n)," ",n_d,"D"1430 WRITE(ipslout,*) "->fliodefv ",TRIM(v_n)," ",n_d,"D" 1431 1431 ENDIF 1432 1432 !- … … 1567 1567 !- 1568 1568 IF (l_dbg) THEN 1569 WRITE( *,*) "<-fliodefv"1569 WRITE(ipslout,*) "<-fliodefv" 1570 1570 ENDIF 1571 1571 !---------------------- … … 2048 2048 ELSE IF (PRESENT(r_85)) THEN; cvr_d = "R8 5D"; 2049 2049 ENDIF 2050 WRITE( *,*) "->flioputv ",TRIM(v_n)," ",TRIM(cvr_d)2050 WRITE(ipslout,*) "->flioputv ",TRIM(v_n)," ",TRIM(cvr_d) 2051 2051 ENDIF 2052 2052 !- … … 2131 2131 !- 2132 2132 IF (l_dbg) THEN 2133 WRITE( *,*) "<-flioputv"2133 WRITE(ipslout,*) "<-flioputv" 2134 2134 ENDIF 2135 2135 !---------------------- … … 2238 2238 !- 2239 2239 IF (l_dbg) THEN 2240 WRITE( *,*) "->flioputa ",TRIM(v_n)," ",TRIM(a_n)2240 WRITE(ipslout,*) "->flioputa ",TRIM(v_n)," ",TRIM(a_n) 2241 2241 ENDIF 2242 2242 !- … … 2270 2270 !- 2271 2271 IF (l_dbg) THEN 2272 WRITE( *,*) "<-flioputa"2272 WRITE(ipslout,*) "<-flioputa" 2273 2273 ENDIF 2274 2274 !---------------------- … … 2291 2291 !- 2292 2292 IF (l_dbg) THEN 2293 WRITE( *,*) '->flioopfd, file name : ',TRIM(f_n)2293 WRITE(ipslout,*) '->flioopfd, file name : ',TRIM(f_n) 2294 2294 ENDIF 2295 2295 !- … … 2325 2325 !- 2326 2326 IF (l_dbg) THEN 2327 WRITE( *,*) ' flioopfd, model file-id : ',f_e2327 WRITE(ipslout,*) ' flioopfd, model file-id : ',f_e 2328 2328 ENDIF 2329 2329 !- … … 2352 2352 WRITE(*,'(" flioopfd - dimensions :",/,(5(1X,I10),:))') & 2353 2353 & nw_dl(:,f_i) 2354 WRITE( *,*) "<-flioopfd"2354 WRITE(ipslout,*) "<-flioopfd" 2355 2355 ENDIF 2356 2356 !---------------------- … … 2373 2373 !- 2374 2374 IF (l_dbg) THEN 2375 WRITE( *,*) "->flioinqf"2375 WRITE(ipslout,*) "->flioinqf" 2376 2376 ENDIF 2377 2377 !- … … 2418 2418 !- 2419 2419 IF (l_dbg) THEN 2420 WRITE( *,*) "<-flioinqf"2420 WRITE(ipslout,*) "<-flioinqf" 2421 2421 ENDIF 2422 2422 !---------------------- … … 2445 2445 !- 2446 2446 IF (l_dbg) THEN 2447 WRITE( *,*) "->flioinqn"2447 WRITE(ipslout,*) "->flioinqn" 2448 2448 ENDIF 2449 2449 !- … … 2622 2622 !- 2623 2623 IF (l_dbg) THEN 2624 WRITE( *,*) "<-flioinqn"2624 WRITE(ipslout,*) "<-flioinqn" 2625 2625 ENDIF 2626 2626 !---------------------- … … 2662 2662 !- 2663 2663 IF (l_dbg) THEN 2664 WRITE( *,*) "->fliogstc"2664 WRITE(ipslout,*) "->fliogstc" 2665 2665 ENDIF 2666 2666 !- … … 2932 2932 !--- 2933 2933 IF (l_dbg) THEN 2934 WRITE( *,*) ' fliogstc - get time details'2934 WRITE(ipslout,*) ' fliogstc - get time details' 2935 2935 ENDIF 2936 2936 !--- … … 2977 2977 !--- 2978 2978 IF (l_dbg) THEN 2979 WRITE( *,*) ' fliogstc - first time : ',t_axis(1:1)2979 WRITE(ipslout,*) ' fliogstc - first time : ',t_axis(1:1) 2980 2980 ENDIF 2981 2981 ENDIF … … 3015 3015 CALL lock_calendar (new_status=l_tmp) 3016 3016 IF (l_dbg) THEN 3017 WRITE( *,*) ' fliogstc - time_type : '3018 WRITE( *,*) it_t3019 WRITE( *,*) ' fliogstc - year month day second t_init : '3020 WRITE( *,*) j_yy,j_mo,j_dd,r_ss,t_init3017 WRITE(ipslout,*) ' fliogstc - time_type : ' 3018 WRITE(ipslout,*) it_t 3019 WRITE(ipslout,*) ' fliogstc - year month day second t_init : ' 3020 WRITE(ipslout,*) j_yy,j_mo,j_dd,r_ss,t_init 3021 3021 ENDIF 3022 3022 ENDIF … … 3080 3080 !- 3081 3081 IF (l_dbg) THEN 3082 WRITE( *,*) "<-fliogstc"3082 WRITE(ipslout,*) "<-fliogstc" 3083 3083 ENDIF 3084 3084 !---------------------- … … 3108 3108 !- 3109 3109 IF (l_dbg) THEN 3110 WRITE( *,*) "->flioinqv ",TRIM(v_n)3110 WRITE(ipslout,*) "->flioinqv ",TRIM(v_n) 3111 3111 ENDIF 3112 3112 !- … … 3221 3221 !- 3222 3222 IF (l_dbg) THEN 3223 WRITE( *,*) "<-flioinqv"3223 WRITE(ipslout,*) "<-flioinqv" 3224 3224 ENDIF 3225 3225 !---------------------- … … 3702 3702 ELSE IF (PRESENT(r_85)) THEN; cvr_d = "R8 5D"; 3703 3703 ENDIF 3704 WRITE( *,*) "->fliogetv ",TRIM(v_n)," ",TRIM(cvr_d)3704 WRITE(ipslout,*) "->fliogetv ",TRIM(v_n)," ",TRIM(cvr_d) 3705 3705 ENDIF 3706 3706 !- … … 3785 3785 !- 3786 3786 IF (l_dbg) THEN 3787 WRITE( *,*) "<-fliogetv"3787 WRITE(ipslout,*) "<-fliogetv" 3788 3788 ENDIF 3789 3789 !---------------------- … … 3806 3806 !- 3807 3807 IF (l_dbg) THEN 3808 WRITE( *,*) "->flioinqa ",TRIM(v_n),"-",TRIM(a_n)3808 WRITE(ipslout,*) "->flioinqa ",TRIM(v_n),"-",TRIM(a_n) 3809 3809 ENDIF 3810 3810 !- … … 3836 3836 !- 3837 3837 IF (l_dbg) THEN 3838 WRITE( *,*) "<-flioinqa"3838 WRITE(ipslout,*) "<-flioinqa" 3839 3839 ENDIF 3840 3840 !---------------------- … … 3948 3948 !- 3949 3949 IF (l_dbg) THEN 3950 WRITE( *,*) "->fliogeta ",TRIM(v_n)," ",TRIM(a_n)3950 WRITE(ipslout,*) "->fliogeta ",TRIM(v_n)," ",TRIM(a_n) 3951 3951 ENDIF 3952 3952 !- … … 4012 4012 !- 4013 4013 IF (l_dbg) THEN 4014 WRITE( *,*) "<-fliogeta"4014 WRITE(ipslout,*) "<-fliogeta" 4015 4015 ENDIF 4016 4016 !---------------------- … … 4031 4031 !- 4032 4032 IF (l_dbg) THEN 4033 WRITE( *,*) &4033 WRITE(ipslout,*) & 4034 4034 & "->fliorenv ",TRIM(v_o_n),"->",TRIM(v_n_n) 4035 4035 ENDIF … … 4052 4052 !- 4053 4053 IF (l_dbg) THEN 4054 WRITE( *,*) "<-fliorenv"4054 WRITE(ipslout,*) "<-fliorenv" 4055 4055 ENDIF 4056 4056 !---------------------- … … 4071 4071 !- 4072 4072 IF (l_dbg) THEN 4073 WRITE( *,*) &4073 WRITE(ipslout,*) & 4074 4074 & "->fliorena ",TRIM(v_n),"-",TRIM(a_o_n),"->",TRIM(a_n_n) 4075 4075 ENDIF … … 4102 4102 !- 4103 4103 IF (l_dbg) THEN 4104 WRITE( *,*) "<-fliorena"4104 WRITE(ipslout,*) "<-fliorena" 4105 4105 ENDIF 4106 4106 !---------------------- … … 4121 4121 !- 4122 4122 IF (l_dbg) THEN 4123 WRITE( *,*) "->fliodela ",TRIM(v_n),"-",TRIM(a_n)4123 WRITE(ipslout,*) "->fliodela ",TRIM(v_n),"-",TRIM(a_n) 4124 4124 ENDIF 4125 4125 !- … … 4150 4150 !- 4151 4151 IF (l_dbg) THEN 4152 WRITE( *,*) "<-fliodela"4152 WRITE(ipslout,*) "<-fliodela" 4153 4153 ENDIF 4154 4154 !---------------------- … … 4169 4169 !- 4170 4170 IF (l_dbg) THEN 4171 WRITE( *,*) "->fliocpya - file",f_i_i,"-",TRIM(v_n_i),"-",TRIM(a_n)4172 WRITE( *,*) " copied to file ",f_i_o,"-",TRIM(v_n_o)4171 WRITE(ipslout,*) "->fliocpya - file",f_i_i,"-",TRIM(v_n_i),"-",TRIM(a_n) 4172 WRITE(ipslout,*) " copied to file ",f_i_o,"-",TRIM(v_n_o) 4173 4173 ENDIF 4174 4174 !- … … 4216 4216 !- 4217 4217 IF (l_dbg) THEN 4218 WRITE( *,*) "<-fliocpya"4218 WRITE(ipslout,*) "<-fliocpya" 4219 4219 ENDIF 4220 4220 !---------------------- … … 4238 4238 !- 4239 4239 IF (l_dbg) THEN 4240 WRITE( *,*) "->flioqstc ",TRIM(c_type)4240 WRITE(ipslout,*) "->flioqstc ",TRIM(c_type) 4241 4241 ENDIF 4242 4242 !- … … 4260 4260 !- 4261 4261 IF (l_dbg) THEN 4262 WRITE( *,*) "<-flioqstc"4262 WRITE(ipslout,*) "<-flioqstc" 4263 4263 ENDIF 4264 4264 !---------------------- … … 4276 4276 !- 4277 4277 IF (l_dbg) THEN 4278 WRITE( *,*) "->fliosync"4278 WRITE(ipslout,*) "->fliosync" 4279 4279 ENDIF 4280 4280 !- … … 4302 4302 IF (f_e > 0) THEN 4303 4303 IF (l_dbg) THEN 4304 WRITE( *,*) ' fliosync - synchronising file number ',i_f4304 WRITE(ipslout,*) ' fliosync - synchronising file number ',i_f 4305 4305 ENDIF 4306 4306 i_rc = NF90_SYNC(f_e) … … 4312 4312 !- 4313 4313 IF (l_dbg) THEN 4314 WRITE( *,*) "<-fliosync"4314 WRITE(ipslout,*) "<-fliosync" 4315 4315 ENDIF 4316 4316 !---------------------- … … 4328 4328 !- 4329 4329 IF (l_dbg) THEN 4330 WRITE( *,*) "->flioclo"4330 WRITE(ipslout,*) "->flioclo" 4331 4331 ENDIF 4332 4332 !- … … 4350 4350 IF (f_e > 0) THEN 4351 4351 IF (l_dbg) THEN 4352 WRITE( *,*) ' flioclo - closing file number ',i_f4352 WRITE(ipslout,*) ' flioclo - closing file number ',i_f 4353 4353 ENDIF 4354 4354 i_rc = NF90_CLOSE(f_e) … … 4361 4361 !- 4362 4362 IF (l_dbg) THEN 4363 WRITE( *,*) "<-flioclo"4363 WRITE(ipslout,*) "<-flioclo" 4364 4364 ENDIF 4365 4365 !--------------------- … … 4445 4445 ELSE 4446 4446 i_rc = NF90_GET_ATT(f_e,NF90_GLOBAL,c_name,tmp_i) 4447 WRITE( *,*) ' ',TRIM(c_name),' : ',tmp_i4447 WRITE(ipslout,*) ' ',TRIM(c_name),' : ',tmp_i 4448 4448 ENDIF 4449 4449 ELSE IF ( (t_ea == NF90_REAL4).OR.(t_ea == NF90_REAL8) ) THEN … … 4456 4456 ELSE 4457 4457 i_rc = NF90_GET_ATT(f_e,NF90_GLOBAL,c_name,tmp_r) 4458 WRITE( *,*) ' ',TRIM(c_name),' : ',tmp_r4458 WRITE(ipslout,*) ' ',TRIM(c_name),' : ',tmp_r 4459 4459 ENDIF 4460 4460 ELSE 4461 4461 tmp_c = '' 4462 4462 i_rc = NF90_GET_ATT(f_e,NF90_GLOBAL,c_name,tmp_c) 4463 WRITE( *,*) ' ',TRIM(c_name),' : "',TRIM(tmp_c),'"'4463 WRITE(ipslout,*) ' ',TRIM(c_name),' : "',TRIM(tmp_c),'"' 4464 4464 ENDIF 4465 4465 ENDDO … … 4499 4499 ELSE 4500 4500 i_rc = NF90_GET_ATT(f_e,i_n,c_name,tmp_i) 4501 WRITE( *,*) ' ',TRIM(c_name),' : ',tmp_i4501 WRITE(ipslout,*) ' ',TRIM(c_name),' : ',tmp_i 4502 4502 ENDIF 4503 4503 ELSE IF ( (t_ea == NF90_REAL4).OR.(t_ea == NF90_REAL8) ) THEN … … 4510 4510 ELSE 4511 4511 i_rc = NF90_GET_ATT(f_e,i_n,c_name,tmp_r) 4512 WRITE( *,*) ' ',TRIM(c_name),' : ',tmp_r4512 WRITE(ipslout,*) ' ',TRIM(c_name),' : ',tmp_r 4513 4513 ENDIF 4514 4514 ELSE 4515 4515 tmp_c = '' 4516 4516 i_rc = NF90_GET_ATT(f_e,i_n,c_name,tmp_c) 4517 WRITE( *,*) ' ',TRIM(c_name),' : "',TRIM(tmp_c),'"'4517 WRITE(ipslout,*) ' ',TRIM(c_name),' : "',TRIM(tmp_c),'"' 4518 4518 ENDIF 4519 4519 ENDDO … … 4937 4937 !- 4938 4938 IF (l_dbg) THEN 4939 WRITE( *,*) "->flio_inf"4939 WRITE(ipslout,*) "->flio_inf" 4940 4940 ENDIF 4941 4941 !- … … 4960 4960 !--- 4961 4961 IF (l_dbg) THEN 4962 WRITE( *,*) " flio_inf ",kv,ml," ",TRIM(f_d_n)4962 WRITE(ipslout,*) " flio_inf ",kv,ml," ",TRIM(f_d_n) 4963 4963 ENDIF 4964 4964 !--- … … 5005 5005 !- 5006 5006 IF (l_dbg) THEN 5007 WRITE( *,*) "<-flio_inf"5007 WRITE(ipslout,*) "<-flio_inf" 5008 5008 ENDIF 5009 5009 !---------------------- -
IOIPSL/trunk/src/getincom.f90
r1375 r1378 6 6 ! See IOIPSL/IOIPSL_License_CeCILL.txt 7 7 !--------------------------------------------------------------------- 8 USE errioipsl, ONLY : ipslerr,ipsldbg 8 USE errioipsl, ONLY : ipslerr,ipsldbg,ipslout 9 9 USE stringop, & 10 10 & ONLY : nocomma,cmpblank,strlowercase … … 853 853 CALL ipslerr (1,'USING DEFAULT BEHAVIOUR FOR', & 854 854 & TRIM(targetname),' ',' ') 855 WRITE( *,*) 'USING DEFAULT BEHAVIOUR FOR ',TRIM(targetname)855 WRITE(ipslout,*) 'USING DEFAULT BEHAVIOUR FOR ',TRIM(targetname) 856 856 ELSE 857 857 status_cnt = 0 … … 860 860 status_cnt = status_cnt+1 861 861 IF (status_cnt <= max_msgs) THEN 862 WRITE (UNIT= *,FMT='(" USING DEFAULTS : ",A)', &862 WRITE (UNIT=ipslout,FMT='(" USING DEFAULTS : ",A)', & 863 863 & ADVANCE='NO') TRIM(targetname) 864 864 IF (nb_to_ret > 1) THEN 865 WRITE (UNIT= *,FMT='("__")',ADVANCE='NO')866 WRITE (UNIT= *,FMT=c_i_fmt,ADVANCE='NO') it865 WRITE (UNIT=ipslout,FMT='("__")',ADVANCE='NO') 866 WRITE (UNIT=ipslout,FMT=c_i_fmt,ADVANCE='NO') it 867 867 ENDIF 868 868 SELECT CASE (k_typ) 869 869 CASE(k_i) 870 WRITE (UNIT= *,FMT=*) "=",i_val(it)870 WRITE (UNIT=ipslout,FMT=*) "=",i_val(it) 871 871 CASE(k_r) 872 WRITE (UNIT= *,FMT=*) "=",r_val(it)872 WRITE (UNIT=ipslout,FMT=*) "=",r_val(it) 873 873 CASE(k_c) 874 WRITE (UNIT= *,FMT=*) "=",c_val(it)874 WRITE (UNIT=ipslout,FMT=*) "=",c_val(it) 875 875 CASE(k_l) 876 WRITE (UNIT= *,FMT=*) "=",l_val(it)876 WRITE (UNIT=ipslout,FMT=*) "=",l_val(it) 877 877 END SELECT 878 878 ELSE IF (status_cnt == max_msgs+1) THEN 879 WRITE (UNIT= *,FMT='(" USING DEFAULTS ... ",A)')879 WRITE (UNIT=ipslout,FMT='(" USING DEFAULTS ... ",A)') 880 880 ENDIF 881 881 ENDIF … … 1123 1123 !- 1124 1124 IF (l_dbg) THEN 1125 WRITE( *,*) 'getin_readdef : Open file ',TRIM(filelist(current))1125 WRITE(ipslout,*) 'getin_readdef : Open file ',TRIM(filelist(current)) 1126 1126 ENDIF 1127 1127 !- … … 1164 1164 NEW_str = TRIM(ADJUSTL(NEW_str)) 1165 1165 IF (l_dbg) THEN 1166 WRITE( *,*) &1166 WRITE(ipslout,*) & 1167 1167 & '--> getin_readdef : ',TRIM(key_str),' :: ',TRIM(NEW_str) 1168 1168 ENDIF … … 1202 1202 nb_lastkey = 0 1203 1203 IF (l_dbg) THEN 1204 WRITE( *,*) 'getin_readdef : Have found an emtpy line '1204 WRITE(ipslout,*) 'getin_readdef : Have found an emtpy line ' 1205 1205 ENDIF 1206 1206 ENDIF … … 1218 1218 !- 1219 1219 IF (l_dbg) THEN 1220 WRITE( *,*) "nb_lines ",nb_lines,"nb_keys ",nb_keys1221 WRITE( *,*) "fichier ",fichier(1:nb_lines)1222 WRITE( *,*) "targetlist ",targetlist(1:nb_lines)1223 WRITE( *,*) "fromfile ",fromfile(1:nb_lines)1224 WRITE( *,*) "compline ",compline(1:nb_lines)1225 WRITE(*,*) '<-getin_readdef'1220 WRITE(ipslout,*) "nb_lines ",nb_lines,"nb_keys ",nb_keys 1221 WRITE(ipslout,*) "fichier ",fichier(1:nb_lines) 1222 WRITE(ipslout,*) "targetlist ",targetlist(1:nb_lines) 1223 WRITE(ipslout,*) "fromfile ",fromfile(1:nb_lines) 1224 WRITE(ipslout,*) "compline ",compline(1:nb_lines) 1225 WRITE(ipslout,*) '<-getin_readdef' 1226 1226 ENDIF 1227 1227 !--------------------------- … … 1410 1410 1411 1411 IF (l_dbg) THEN 1412 WRITE( *,*) "getin_decrypt ->",TRIM(NEW_str), " : "1413 WRITE( *,*) "getin_decrypt ->", nb_lines,&1412 WRITE(ipslout,*) "getin_decrypt ->",TRIM(NEW_str), " : " 1413 WRITE(ipslout,*) "getin_decrypt ->", nb_lines,& 1414 1414 & SIZE(fichier), & 1415 1415 & SIZE(fromfile), & 1416 1416 & SIZE(filelist) 1417 1417 IF (nb_lines > 0) THEN 1418 WRITE( *,*) "getin_decrypt ->",TRIM(NEW_str), " :", &1418 WRITE(ipslout,*) "getin_decrypt ->", & 1419 1419 & TRIM(fichier(nb_lines)), & 1420 1420 & fromfile(nb_lines), & 1421 1421 & TRIM(filelist(fromfile(nb_lines))) 1422 WRITE( *,*) " compline : ",compline(nb_lines)1423 WRITE( *,*) " targetlist : ",TRIM(targetlist(nb_lines))1422 WRITE(ipslout,*) " compline : ",compline(nb_lines) 1423 WRITE(ipslout,*) " targetlist : ",TRIM(targetlist(nb_lines)) 1424 1424 ENDIF 1425 WRITE( *,*) " last_key : ",last_key1425 WRITE(ipslout,*) " last_key : ",last_key 1426 1426 ENDIF 1427 1427 !--------------------------- … … 1451 1451 !--- 1452 1452 IF (n_k > 0) THEN 1453 WRITE( *,*) 'COUNT : ',n_k1454 WRITE( *,*) &1453 WRITE(ipslout,*) 'COUNT : ',n_k 1454 WRITE(ipslout,*) & 1455 1455 & 'getin_checkcohe : Found a problem on key ',TRIM(targetlist(line)) 1456 WRITE( *,*) &1456 WRITE(ipslout,*) & 1457 1457 & 'getin_checkcohe : The following values were encoutered :' 1458 WRITE( *,*) &1458 WRITE(ipslout,*) & 1459 1459 & ' ',TRIM(targetlist(line)),' == ',fichier(line) 1460 WRITE( *,*) &1460 WRITE(ipslout,*) & 1461 1461 & ' ',TRIM(targetlist(k)),' == ',fichier(k) 1462 WRITE( *,*) &1462 WRITE(ipslout,*) & 1463 1463 & 'getin_checkcohe : We will keep only the last value' 1464 1464 CALL ipslerr (2,'getin_checkcohe','Found a problem on key ', & … … 1858 1858 used_filename = TRIM(usedfileprefix)//'_'//TRIM(filelist(if)) 1859 1859 IF (l_dbg) THEN 1860 WRITE( *,*) &1860 WRITE(ipslout,*) & 1861 1861 & 'getin_dump : opens file : ',TRIM(used_filename),' if = ',if 1862 WRITE( *,*) 'GETIN_DUMP : NUMBER OF KEYS : ',nb_keys1862 WRITE(ipslout,*) 'GETIN_DUMP : NUMBER OF KEYS : ',nb_keys 1863 1863 ENDIF 1864 1864 OPEN (UNIT=22,FILE=used_filename,iostat=io_err) … … 1880 1880 WRITE(22,*) '# ' 1881 1881 IF (l_dbg) THEN 1882 WRITE( *,*) '# '1883 WRITE( *,*) '# This file is linked to the following files :'1884 WRITE( *,*) '# '1882 WRITE(ipslout,*) '# ' 1883 WRITE(ipslout,*) '# This file is linked to the following files :' 1884 WRITE(ipslout,*) '# ' 1885 1885 DO iff=2,nbfiles 1886 WRITE( *,*) 'INCLUDEDEF = ',TRIM(filelist(iff))1886 WRITE(ipslout,*) 'INCLUDEDEF = ',TRIM(filelist(iff)) 1887 1887 ENDDO 1888 WRITE( *,*) '# '1888 WRITE(ipslout,*) '# ' 1889 1889 ENDIF 1890 1890 ENDIF … … 1915 1915 !- 1916 1916 IF (l_dbg) THEN 1917 WRITE( *,*) '#'1918 WRITE( *,*) '# Status of key ', ikey, ' : ',&1917 WRITE(ipslout,*) '#' 1918 WRITE(ipslout,*) '# Status of key ', ikey, ' : ',& 1919 1919 & TRIM(key_tab(ikey)%keystr),key_tab(ikey)%keystatus 1920 1920 ENDIF -
IOIPSL/trunk/src/histcom.f90
r1028 r1378 12 12 USE fliocom, ONLY : flio_dom_file,flio_dom_att 13 13 USE calendar 14 USE errioipsl, ONLY : ipslerr,ipsldbg 14 USE errioipsl, ONLY : ipslerr,ipsldbg,ipslout 15 15 !- 16 16 IMPLICIT NONE … … 340 340 ENDIF 341 341 !- 342 IF (l_dbg) WRITE( *,*) c_nam//" 0.0"342 IF (l_dbg) WRITE(ipslout,*) c_nam//" 0.0" 343 343 !- 344 344 ! Search for a free index … … 358 358 ! 1.0 Transfering into the common for future use 359 359 !- 360 IF (l_dbg) WRITE( *,*) c_nam//" 1.0"360 IF (l_dbg) WRITE(ipslout,*) c_nam//" 1.0" 361 361 !- 362 362 W_F(idf)%itau0 = pitau0 … … 366 366 ! 2.0 Initializes all variables for this file 367 367 !- 368 IF (l_dbg) WRITE( *,*) c_nam//" 2.0"368 IF (l_dbg) WRITE(ipslout,*) c_nam//" 2.0" 369 369 !- 370 370 W_F(idf)%n_var = 0 … … 383 383 ! 3.0 Opening netcdf file and defining dimensions 384 384 !- 385 IF (l_dbg) WRITE( *,*) c_nam//" 3.0"385 IF (l_dbg) WRITE(ipslout,*) c_nam//" 3.0" 386 386 !- 387 387 ! Add DOMAIN number and ".nc" suffix in file name if needed … … 425 425 ! 4.0 Declaring the geographical coordinates and other attributes 426 426 !- 427 IF (l_dbg) WRITE( *,*) c_nam//" 4.0"427 IF (l_dbg) WRITE(ipslout,*) c_nam//" 4.0" 428 428 !- 429 429 iret = NF90_PUT_ATT(nfid,NF90_GLOBAL,'Conventions','CF-1.1') … … 436 436 ! 5.0 Saving some important information on this file in the common 437 437 !- 438 IF (l_dbg) WRITE( *,*) c_nam//" 5.0"438 IF (l_dbg) WRITE(ipslout,*) c_nam//" 5.0" 439 439 !- 440 440 IF (PRESENT(domain_id)) THEN … … 612 612 ! 1.1 Create all the variables needed 613 613 !- 614 IF (l_dbg) WRITE( *,*) c_nam//" 1.0"614 IF (l_dbg) WRITE(ipslout,*) c_nam//" 1.0" 615 615 !- 616 616 nfid = W_F(idf)%ncfid … … 671 671 ! 2.0 Longitude 672 672 !- 673 IF (l_dbg) WRITE( *,*) c_nam//" 2.0"673 IF (l_dbg) WRITE(ipslout,*) c_nam//" 2.0" 674 674 !- 675 675 i_s = 1; … … 702 702 ! 3.0 Latitude 703 703 !- 704 IF (l_dbg) WRITE( *,*) c_nam//" 3.0"704 IF (l_dbg) WRITE(ipslout,*) c_nam//" 3.0" 705 705 !- 706 706 i_e = 2; … … 736 736 ! 4.0 storing the geographical coordinates 737 737 !- 738 IF (l_dbg) WRITE( *,*) c_nam//" 4.0"738 IF (l_dbg) WRITE(ipslout,*) c_nam//" 4.0" 739 739 !- 740 740 IF ( (k_typ == 1).OR.(k_typ == 2) ) THEN … … 833 833 ! Is the name already in use ? 834 834 !- 835 IF (l_dbg) WRITE( *,*) "histvert : 1.0 Verifications", &835 IF (l_dbg) WRITE(ipslout,*) "histvert : 1.0 Verifications", & 836 836 & pzaxname,'---',pzaxunit,'---',pzaxtitle 837 837 !- … … 883 883 !- 884 884 IF (l_dbg) & 885 & WRITE( *,*) "histvert : 2.0 Add the information to the file"885 & WRITE(ipslout,*) "histvert : 2.0 Add the information to the file" 886 886 !- 887 887 nfid = W_F(idf)%ncfid … … 918 918 !- 919 919 IF (l_dbg) & 920 & WRITE( *,*) "histvert : 3.0 add the information to the common"920 & WRITE(ipslout,*) "histvert : 3.0 add the information to the common" 921 921 !- 922 922 W_F(idf)%n_zax = iv … … 1016 1016 ! and verify that it does not already exist 1017 1017 !- 1018 IF (l_dbg) WRITE( *,*) "histdef : 1.0"1018 IF (l_dbg) WRITE(ipslout,*) "histdef : 1.0" 1019 1019 !- 1020 1020 IF (iv > 1) THEN … … 1070 1070 !- 1071 1071 IF (l_dbg) THEN 1072 WRITE( *,*) "histdef : 2.0",idf,iv,W_F(idf)%W_V(iv)%nbopp, &1072 WRITE(ipslout,*) "histdef : 2.0",idf,iv,W_F(idf)%W_V(iv)%nbopp, & 1073 1073 & W_F(idf)%W_V(iv)%sopp(1:W_F(idf)%W_V(iv)%nbopp), & 1074 1074 & W_F(idf)%W_V(iv)%scal(1:W_F(idf)%W_V(iv)%nbopp) … … 1164 1164 !- 1165 1165 IF (l_dbg) THEN 1166 WRITE( *,*) "histdef : 3.0"1166 WRITE(ipslout,*) "histdef : 3.0" 1167 1167 ENDIF 1168 1168 !- … … 1177 1177 W_F(idf)%W_V(iv)%t_bf(:) = 0. 1178 1178 IF (l_dbg) THEN 1179 WRITE( *,*) "histdef : 3.0 allocating time_buffer for", &1179 WRITE(ipslout,*) "histdef : 3.0 allocating time_buffer for", & 1180 1180 & " idf = ",idf," iv = ",iv," size = ",buff_sz 1181 1181 ENDIF … … 1187 1187 ! The strategy is to bring it back to seconds for the tests 1188 1188 !- 1189 IF (l_dbg) WRITE( *,*) "histdef : 4.0"1189 IF (l_dbg) WRITE(ipslout,*) "histdef : 4.0" 1190 1190 !- 1191 1191 W_F(idf)%W_V(iv)%freq_opp = pfreq_opp … … 1272 1272 ! 5.0 Initialize other variables of the common 1273 1273 !- 1274 IF (l_dbg) WRITE( *,*) "histdef : 5.0"1274 IF (l_dbg) WRITE(ipslout,*) "histdef : 5.0" 1275 1275 !- 1276 1276 W_F(idf)%W_V(iv)%hist_wrt_rng = (PRESENT(var_range)) … … 1298 1298 ! 6.0 Get the time axis for this variable 1299 1299 !- 1300 IF (l_dbg) WRITE( *,*) "histdef : 6.0"1300 IF (l_dbg) WRITE(ipslout,*) "histdef : 6.0" 1301 1301 !- 1302 1302 ! No time axis for once, l_max, l_min or never operation … … 1331 1331 ELSE 1332 1332 IF (l_dbg) THEN 1333 WRITE( *,*) "histdef : 7.0 ",TRIM(W_F(idf)%W_V(iv)%topp),'----'1333 WRITE(ipslout,*) "histdef : 7.0 ",TRIM(W_F(idf)%W_V(iv)%topp),'----' 1334 1334 ENDIF 1335 1335 W_F(idf)%W_V(iv)%t_axid = -99 … … 1385 1385 ! 1.0 Create the time axes 1386 1386 !- 1387 IF (l_dbg) WRITE( *,*) "histend : 1.0"1387 IF (l_dbg) WRITE(ipslout,*) "histend : 1.0" 1388 1388 !- 1389 1389 ! 1.1 Define the time dimensions needed for this file … … 1473 1473 ! 2.0 declare the variables 1474 1474 !- 1475 IF (l_dbg) WRITE( *,*) "histend : 2.0"1475 IF (l_dbg) WRITE(ipslout,*) "histend : 2.0" 1476 1476 !- 1477 1477 DO iv=1,W_F(idf)%n_var … … 1575 1575 !- 1576 1576 IF (l_dbg) THEN 1577 WRITE( *,*) "histend : 2.0.n, freq_opp, freq_wrt", &1577 WRITE(ipslout,*) "histend : 2.0.n, freq_opp, freq_wrt", & 1578 1578 & W_F(idf)%W_V(iv)%freq_opp,W_F(idf)%W_V(iv)%freq_wrt 1579 1579 ENDIF … … 1596 1596 ! 3.0 Put the netcdf file into write mode 1597 1597 !- 1598 IF (l_dbg) WRITE( *,*) "histend : 3.0"1598 IF (l_dbg) WRITE(ipslout,*) "histend : 3.0" 1599 1599 !- 1600 1600 iret = NF90_ENDDEF (nfid) … … 1602 1602 ! 4.0 Give some informations to the user 1603 1603 !- 1604 IF (l_dbg) WRITE( *,*) "histend : 4.0"1604 IF (l_dbg) WRITE(ipslout,*) "histend : 4.0" 1605 1605 !- 1606 1606 WRITE(str70,'("All variables have been initialized on file :",I3)') idf … … 1682 1682 !- 1683 1683 IF (l_dbg) THEN 1684 WRITE( *,*) "histwrite : ",c_nam1684 WRITE(ipslout,*) "histwrite : ",c_nam 1685 1685 ENDIF 1686 1686 !- … … 1791 1791 IF (.NOT.ALLOCATED(tbf_1)) THEN 1792 1792 IF (l_dbg) THEN 1793 WRITE( *,*) &1793 WRITE(ipslout,*) & 1794 1794 & c_nam//" : allocate tbf_1 for size = ", & 1795 1795 & W_F(idf)%W_V(iv)%datasz_max … … 1798 1798 ELSE IF (W_F(idf)%W_V(iv)%datasz_max > SIZE(tbf_1)) THEN 1799 1799 IF (l_dbg) THEN 1800 WRITE( *,*) &1800 WRITE(ipslout,*) & 1801 1801 & c_nam//" : re-allocate tbf_1 for size = ", & 1802 1802 & W_F(idf)%W_V(iv)%datasz_max … … 1871 1871 !- 1872 1872 IF (l_dbg) THEN 1873 WRITE( *,*) "histwrite 0.0 : VAR : ",W_F(idf)%W_V(iv)%v_name1874 WRITE( *,*) "histwrite 0.0 : nbindex :",nbindex1875 WRITE( *,*) "histwrite 0.0 : nindex :",nindex(1:MIN(3,nbindex)),'...'1873 WRITE(ipslout,*) "histwrite 0.0 : VAR : ",W_F(idf)%W_V(iv)%v_name 1874 WRITE(ipslout,*) "histwrite 0.0 : nbindex :",nbindex 1875 WRITE(ipslout,*) "histwrite 0.0 : nindex :",nindex(1:MIN(3,nbindex)),'...' 1876 1876 ENDIF 1877 1877 !- … … 1888 1888 IF (.NOT.ALLOCATED(tbf_2)) THEN 1889 1889 IF (l_dbg) THEN 1890 WRITE( *,*) "histwrite_real 1.1 allocate tbf_2 ",SIZE(tbf_1)1890 WRITE(ipslout,*) "histwrite_real 1.1 allocate tbf_2 ",SIZE(tbf_1) 1891 1891 ENDIF 1892 1892 ALLOCATE(tbf_2(W_F(idf)%W_V(iv)%datasz_max)) 1893 1893 ELSE IF (W_F(idf)%W_V(iv)%datasz_max > SIZE(tbf_2)) THEN 1894 1894 IF (l_dbg) THEN 1895 WRITE( *,*) "histwrite_real 1.2 re-allocate tbf_2 : ", &1895 WRITE(ipslout,*) "histwrite_real 1.2 re-allocate tbf_2 : ", & 1896 1896 & SIZE(tbf_1)," instead of ",SIZE(tbf_2) 1897 1897 ENDIF … … 1906 1906 !- 1907 1907 IF (l_dbg) THEN 1908 WRITE( *,*) "histwrite: 3.0",idf1908 WRITE(ipslout,*) "histwrite: 3.0",idf 1909 1909 ENDIF 1910 1910 !- … … 1924 1924 & nbout,tbf_2) 1925 1925 IF (l_dbg) THEN 1926 WRITE( *,*) &1926 WRITE(ipslout,*) & 1927 1927 & "histwrite: 3.4a nbout : ",nbin,nbout,W_F(idf)%W_V(iv)%sopp(io) 1928 1928 ENDIF … … 1934 1934 & nbout,tbf_1) 1935 1935 IF (l_dbg) THEN 1936 WRITE( *,*) &1936 WRITE(ipslout,*) & 1937 1937 & "histwrite: 3.4b nbout : ",nbin,nbout,W_F(idf)%W_V(iv)%sopp(io+1) 1938 1938 ENDIF … … 1942 1942 !- 1943 1943 IF (l_dbg) THEN 1944 WRITE( *,*) &1944 WRITE(ipslout,*) & 1945 1945 & "histwrite: 3.5 size(tbf_1) : ",SIZE(tbf_1) 1946 WRITE( *,*) &1946 WRITE(ipslout,*) & 1947 1947 & "histwrite: 3.5 slab in X :", & 1948 1948 & W_F(idf)%W_V(iv)%zorig(1),W_F(idf)%W_V(iv)%zsize(1) 1949 WRITE( *,*) &1949 WRITE(ipslout,*) & 1950 1950 & "histwrite: 3.5 slab in Y :", & 1951 1951 & W_F(idf)%W_V(iv)%zorig(2),W_F(idf)%W_V(iv)%zsize(2) 1952 WRITE( *,*) &1952 WRITE(ipslout,*) & 1953 1953 & "histwrite: 3.5 slab in Z :", & 1954 1954 & W_F(idf)%W_V(iv)%zorig(3),W_F(idf)%W_V(iv)%zsize(3) 1955 WRITE( *,*) &1955 WRITE(ipslout,*) & 1956 1956 & "histwrite: 3.5 slab of input:", & 1957 1957 & W_F(idf)%W_V(iv)%scsize(1), & … … 1999 1999 !- 2000 2000 IF (l_dbg) THEN 2001 WRITE( *,*) "histwrite: 4.0 tbf_1",idf,iv, &2001 WRITE(ipslout,*) "histwrite: 4.0 tbf_1",idf,iv, & 2002 2002 & TRIM(tmp_opp),' ---- ',LEN_TRIM(tmp_opp),nbindex 2003 2003 ENDIF … … 2016 2016 !- 2017 2017 IF (l_dbg) THEN 2018 WRITE( *,*) "histwrite: 5.0 idf : ",idf," iv : ",iv," tsz : ",tsz2018 WRITE(ipslout,*) "histwrite: 5.0 idf : ",idf," iv : ",iv," tsz : ",tsz 2019 2019 ENDIF 2020 2020 !- … … 2032 2032 ! 6.0 Write to file if needed 2033 2033 !- 2034 IF (l_dbg) WRITE( *,*) "histwrite: 6.0",idf2034 IF (l_dbg) WRITE(ipslout,*) "histwrite: 6.0",idf 2035 2035 !- 2036 2036 IF (do_write) THEN … … 2041 2041 !-- 6.1 Do the operations that are needed before writting 2042 2042 !- 2043 IF (l_dbg) WRITE( *,*) "histwrite: 6.1",idf2043 IF (l_dbg) WRITE(ipslout,*) "histwrite: 6.1",idf 2044 2044 !- 2045 2045 IF ( (TRIM(tmp_opp) /= "inst") & … … 2055 2055 & .AND.(TRIM(tmp_opp) /= "once") ) THEN 2056 2056 !- 2057 IF (l_dbg) WRITE( *,*) "histwrite: 6.2",idf2057 IF (l_dbg) WRITE(ipslout,*) "histwrite: 6.2",idf 2058 2058 !- 2059 2059 itax = W_F(idf)%W_V(iv)%t_axid … … 2077 2077 !- 2078 2078 IF (l_dbg) THEN 2079 WRITE( *,*) "histwrite: 6.3",idf,nfid,nvid,iv,itime2079 WRITE(ipslout,*) "histwrite: 6.3",idf,nfid,nvid,iv,itime 2080 2080 ENDIF 2081 2081 !- … … 2159 2159 !- 2160 2160 IF (l_dbg) THEN 2161 WRITE( *,*) 'histvar_seq, start of the subroutine :',learning(idf)2161 WRITE(ipslout,*) 'histvar_seq, start of the subroutine :',learning(idf) 2162 2162 ENDIF 2163 2163 !- … … 2203 2203 & 'of your code. Thus if you wish to save time'// & 2204 2204 & ' contact the IOIPSL team. ') 2205 WRITE( *,*) 'The sequence we have found up to now :'2206 WRITE( *,*) varseq(idf,1:sp-1)2205 WRITE(ipslout,*) 'The sequence we have found up to now :' 2206 WRITE(ipslout,*) varseq(idf,1:sp-1) 2207 2207 varseq_err(idf) = -1 2208 2208 ENDIF … … 2268 2268 !- 2269 2269 IF (l_dbg) THEN 2270 WRITE( *,*) &2270 WRITE(ipslout,*) & 2271 2271 & 'histvar_seq, end of the subroutine :',TRIM(pvarname),idv 2272 2272 ENDIF … … 2294 2294 !- 2295 2295 IF (l_dbg) THEN 2296 WRITE( *,*) "->histsync"2296 WRITE(ipslout,*) "->histsync" 2297 2297 ENDIF 2298 2298 !- … … 2319 2319 IF (W_F(ifile)%ncfid > 0) THEN 2320 2320 IF (l_dbg) THEN 2321 WRITE( *,*) ' histsync - synchronising file number ',ifile2321 WRITE(ipslout,*) ' histsync - synchronising file number ',ifile 2322 2322 ENDIF 2323 2323 iret = NF90_SYNC(W_F(ifile)%ncfid) … … 2326 2326 !- 2327 2327 IF (l_dbg) THEN 2328 WRITE( *,*) "<-histsync"2328 WRITE(ipslout,*) "<-histsync" 2329 2329 ENDIF 2330 2330 !---------------------- … … 2349 2349 !- 2350 2350 IF (l_dbg) THEN 2351 WRITE( *,*) "->histclo"2351 WRITE(ipslout,*) "->histclo" 2352 2352 ENDIF 2353 2353 !- … … 2374 2374 IF (W_F(ifile)%ncfid > 0) THEN 2375 2375 IF (l_dbg) THEN 2376 WRITE( *,*) ' histclo - closing specified file number :',ifile2376 WRITE(ipslout,*) ' histclo - closing specified file number :',ifile 2377 2377 ENDIF 2378 2378 nfid = W_F(ifile)%ncfid … … 2382 2382 !----- 2383 2383 IF (l_dbg) THEN 2384 WRITE( *,*) ' Entering loop on vars : ',W_F(ifile)%n_var2384 WRITE(ipslout,*) ' Entering loop on vars : ',W_F(ifile)%n_var 2385 2385 ENDIF 2386 2386 DO iv=1,W_F(ifile)%n_var … … 2388 2388 IF (W_F(ifile)%W_V(iv)%hist_wrt_rng) THEN 2389 2389 IF (l_dbg) THEN 2390 WRITE( *,*) 'min value for file :',ifile,' var n. :',iv, &2390 WRITE(ipslout,*) 'min value for file :',ifile,' var n. :',iv, & 2391 2391 & ' is : ',W_F(ifile)%W_V(iv)%hist_minmax(1) 2392 WRITE( *,*) 'max value for file :',ifile,' var n. :',iv, &2392 WRITE(ipslout,*) 'max value for file :',ifile,' var n. :',iv, & 2393 2393 & ' is : ',W_F(ifile)%W_V(iv)%hist_minmax(2) 2394 2394 ENDIF … … 2420 2420 !---- 2. Close the file 2421 2421 !----- 2422 IF (l_dbg) WRITE( *,*) ' close file :',nfid2422 IF (l_dbg) WRITE(ipslout,*) ' close file :',nfid 2423 2423 iret = NF90_CLOSE(nfid) 2424 2424 W_F(ifile)%ncfid = -1 … … 2428 2428 !- 2429 2429 IF (l_dbg) THEN 2430 WRITE( *,*) "<-histclo"2430 WRITE(ipslout,*) "<-histclo" 2431 2431 ENDIF 2432 2432 !--------------------- -
IOIPSL/trunk/src/restcom.f90
r430 r1378 8 8 USE netcdf 9 9 !- 10 USE errioipsl, ONLY : ipslerr,ipsldbg 10 USE errioipsl, ONLY : ipslerr,ipsldbg, ipslout 11 11 USE stringop 12 12 USE calendar … … 230 230 !- 231 231 IF (l_dbg) THEN 232 WRITE( *,*) 'restini 0.0 : ',TRIM(fnamein),' , ',TRIM(fnameout)232 WRITE(ipslout,*) 'restini 0.0 : ',TRIM(fnamein),' , ',TRIM(fnameout) 233 233 ENDIF 234 234 !- … … 254 254 !- 255 255 IF (l_dbg) THEN 256 WRITE( *,*) 'restini 0.1 l_fi, l_fo, l_rw : ',l_fi,l_fo,l_rw256 WRITE(ipslout,*) 'restini 0.1 l_fi, l_fo, l_rw : ',l_fi,l_fo,l_rw 257 257 ENDIF 258 258 !- … … 261 261 IF (l_fi) THEN 262 262 !--- 263 IF (l_dbg) WRITE( *,*) 'restini 1.0 : Open input file'263 IF (l_dbg) WRITE(ipslout,*) 'restini 1.0 : Open input file' 264 264 !-- Add DOMAIN number and ".nc" suffix in file names if needed 265 265 fname = fnamein … … 284 284 !-- 2.0 The case of a missing restart file is dealt with 285 285 !--- 286 IF (l_dbg) WRITE( *,*) 'restini 2.0'286 IF (l_dbg) WRITE(ipslout,*) 'restini 2.0' 287 287 !--- 288 288 IF ( (ALL(MINLOC(lon(:iim,:jjm)) == MAXLOC(lon(:iim,:jjm)))) & … … 340 340 !- 341 341 IF (l_dbg) THEN 342 WRITE( *,*) 'restini 2.3 : Configure calendar if needed : ', &342 WRITE(ipslout,*) 'restini 2.3 : Configure calendar if needed : ', & 343 343 calend_str 344 344 ENDIF … … 347 347 CALL ioconf_calendar (calend_str) 348 348 IF (l_dbg) THEN 349 WRITE( *,*) 'restini 2.3b : new calendar : ',calend_str349 WRITE(ipslout,*) 'restini 2.3b : new calendar : ',calend_str 350 350 ENDIF 351 351 ENDIF … … 359 359 fid = nb_fi 360 360 IF (l_dbg) THEN 361 WRITE( *,*) 'SIZE of t_index :',SIZE(t_index), &361 WRITE(ipslout,*) 'SIZE of t_index :',SIZE(t_index), & 362 362 SIZE(t_index,dim=1),SIZE(t_index,dim=2) 363 WRITE( *,*) 't_index = ',t_index(fid,:)363 WRITE(ipslout,*) 't_index = ',t_index(fid,:) 364 364 ENDIF 365 365 itau = t_index(fid,1) 366 366 !- 367 IF (l_dbg) WRITE( *,*) 'restini END'367 IF (l_dbg) WRITE(ipslout,*) 'restini END' 368 368 !--------------------- 369 369 END SUBROUTINE restini … … 502 502 ! 2.0 Get the list of variables 503 503 !- 504 IF (l_dbg) WRITE( *,*) 'restopenin 1.2'504 IF (l_dbg) WRITE(ipslout,*) 'restopenin 1.2' 505 505 !- 506 506 lat_vid = -1 … … 663 663 CALL ioconf_calendar (calendar) 664 664 IF (l_dbg) THEN 665 WRITE( *,*) 'restsett : calendar of the restart ',calendar665 WRITE(ipslout,*) 'restsett : calendar of the restart ',calendar 666 666 ENDIF 667 667 ENDIF … … 669 669 CALL ioget_calendar (one_year,one_day) 670 670 IF (l_dbg) THEN 671 WRITE( *,*) 'one_year,one_day = ',one_year,one_day671 WRITE(ipslout,*) 'one_year,one_day = ',one_year,one_day 672 672 ENDIF 673 673 !- … … 681 681 t_index(nb_fi,:) = itau 682 682 IF (l_dbg) THEN 683 WRITE( *,*) "nb_fi,t_index",nb_fi,t_index(nb_fi,:)683 WRITE(ipslout,*) "nb_fi,t_index",nb_fi,t_index(nb_fi,:) 684 684 ENDIF 685 685 CALL ju2ymds (date0,year0,month0,day0,sec0) … … 691 691 strc=':' 692 692 IF (l_dbg) THEN 693 WRITE( *,*) date0693 WRITE(ipslout,*) date0 694 694 WRITE (UNIT=itau_orig,FMT='(I4.4,5(A,I2.2))') & 695 695 & year0,'-',month0,'-',day0,' ',hours0,':',minutes0,':',seci 696 WRITE( *,*) "itau_orig : ",itau_orig696 WRITE(ipslout,*) "itau_orig : ",itau_orig 697 697 ENDIF 698 698 ELSE 699 699 iret = NF90_GET_VAR(ncfid,tind_varid_in(nb_fi),t_index(nb_fi,:)) 700 700 IF (l_dbg) THEN 701 WRITE( *,*) "restsett, time axis : ",t_index(nb_fi,:)701 WRITE(ipslout,*) "restsett, time axis : ",t_index(nb_fi,:) 702 702 ENDIF 703 703 iret = NF90_GET_ATT(ncfid,tind_varid_in(nb_fi),'units',itau_orig) … … 727 727 iret = NF90_GET_ATT(ncfid,tax_varid_in(nb_fi),'calendar',tmp_cal) 728 728 IF (l_dbg) THEN 729 WRITE( *,*) 'restsett : tmp_calendar of the restart ',tmp_cal729 WRITE(ipslout,*) 'restsett : tmp_calendar of the restart ',tmp_cal 730 730 ENDIF 731 731 !--- … … 744 744 !-- to get ride of the intial date. 745 745 !--- 746 IF (l_dbg) WRITE( *,*) 'tax_orig : ',TRIM(tax_orig)746 IF (l_dbg) WRITE(ipslout,*) 'tax_orig : ',TRIM(tax_orig) 747 747 READ (UNIT=tax_orig,FMT='(I4.4,5(a,I2.2))') & 748 748 year0,strc,month0,strc,day0,strc, & … … 831 831 CALL ipsldbg (old_status=l_dbg) 832 832 !- 833 IF (l_dbg) WRITE( *,*) "restopenout 0.0 ",TRIM(fname)833 IF (l_dbg) WRITE(ipslout,*) "restopenout 0.0 ",TRIM(fname) 834 834 !- 835 835 ! If we use the same file for input and output … … 863 863 ! 1.0 Longitude 864 864 !- 865 IF (l_dbg) WRITE( *,*) "restopenout 1.0"865 IF (l_dbg) WRITE(ipslout,*) "restopenout 1.0" 866 866 !- 867 867 iret = NF90_DEF_VAR(ncfid,"nav_lon",NF90_FLOAT,(/x_id,y_id/),nlonid) … … 873 873 ! 2.0 Latitude 874 874 !- 875 IF (l_dbg) WRITE( *,*) "restopenout 2.0"875 IF (l_dbg) WRITE(ipslout,*) "restopenout 2.0" 876 876 !- 877 877 iret = NF90_DEF_VAR(ncfid,"nav_lat",NF90_FLOAT,(/x_id,y_id/),nlatid) … … 883 883 ! 3.0 Levels 884 884 !- 885 IF (l_dbg) WRITE( *,*) "restopenout 3.0"885 IF (l_dbg) WRITE(ipslout,*) "restopenout 3.0" 886 886 !- 887 887 iret = NF90_DEF_VAR(ncfid,"nav_lev",NF90_FLOAT,z_id,nlevid) … … 895 895 ! 4.0 Time axis, this is the seconds since axis 896 896 !- 897 IF (l_dbg) WRITE( *,*) "restopenout 4.0"897 IF (l_dbg) WRITE(ipslout,*) "restopenout 4.0" 898 898 !- 899 899 iret = NF90_DEF_VAR(ncfid,"time",NF90_FLOAT, & … … 923 923 ! 5.0 Time axis, this is the time steps since axis 924 924 !- 925 IF (l_dbg) WRITE( *,*) "restopenout 5.0"925 IF (l_dbg) WRITE(ipslout,*) "restopenout 5.0" 926 926 !- 927 927 iret = NF90_DEF_VAR(ncfid,"time_steps",NF90_INT, & … … 984 984 iret = NF90_REDEF(ncfid) 985 985 !- 986 IF (l_dbg) WRITE( *,*) "restopenout END"986 IF (l_dbg) WRITE(ipslout,*) "restopenout END" 987 987 !------------------------- 988 988 END SUBROUTINE restopenout … … 1902 1902 ! 1.0 Check if the variable is already present 1903 1903 !- 1904 IF (l_dbg) WRITE( *,*) 'RESTPUT 1.0 : ',TRIM(vname_q)1904 IF (l_dbg) WRITE(ipslout,*) 'RESTPUT 1.0 : ',TRIM(vname_q) 1905 1905 !- 1906 1906 CALL find_str (varname_out(fid,1:nbvar_out(fid)),vname_q,vnb) 1907 1907 !- 1908 1908 IF (l_dbg) THEN 1909 WRITE( *,*) 'RESTPUT 1.1 : ',varname_out(fid,1:nbvar_out(fid)),vnb1909 WRITE(ipslout,*) 'RESTPUT 1.1 : ',varname_out(fid,1:nbvar_out(fid)),vnb 1910 1910 ENDIF 1911 1911 !- … … 1919 1919 vid = varid_out(fid,vnb) 1920 1920 !- 1921 IF (l_dbg) WRITE( *,*) 'RESTPUT 2.0 : ',vnb,vid1921 IF (l_dbg) WRITE(ipslout,*) 'RESTPUT 2.0 : ',vnb,vid 1922 1922 !- 1923 1923 ! 2.1 Is this file already in write mode ? … … 1932 1932 ! If not then check that all variables of previous time is OK. 1933 1933 !- 1934 IF (l_dbg) WRITE( *,*) 'RESTPUT 3.0 : ',itau,itau_out(fid)1934 IF (l_dbg) WRITE(ipslout,*) 'RESTPUT 3.0 : ',itau,itau_out(fid) 1935 1935 !- 1936 1936 IF (itau /= itau_out(fid)) THEN … … 1942 1942 IF (tstp_out(fid) == 0) THEN 1943 1943 IF (nbvar_out(fid) < nbvar_read(fid)) THEN 1944 WRITE( *,*) "ERROR :",tstp_out(fid), &1944 WRITE(ipslout,*) "ERROR :",tstp_out(fid), & 1945 1945 nbvar_out(fid),nbvar_read(fid) 1946 1946 CALL ipslerr (1,'restput', & … … 1955 1955 ENDDO 1956 1956 IF (ierr > 0) THEN 1957 WRITE( *,*) "ERROR :",nbvar_out(fid)1957 WRITE(ipslout,*) "ERROR :",nbvar_out(fid) 1958 1958 CALL ipslerr (1,'restput', & 1959 1959 & 'There are fewer variables in the output file for this', & … … 1971 1971 !--- 1972 1972 IF (l_dbg) THEN 1973 WRITE( *,*) 'RESTPUT 3.1 : ',itau,secsince,corner(1),edge(1)1973 WRITE(ipslout,*) 'RESTPUT 3.1 : ',itau,secsince,corner(1),edge(1) 1974 1974 ENDIF 1975 1975 !--- … … 2058 2058 !- 2059 2059 IF (l_dbg) THEN 2060 WRITE( *,*) 'restdefv 1.0 :',TRIM(varname),nbvar_out(fid)2060 WRITE(ipslout,*) 'restdefv 1.0 :',TRIM(varname),nbvar_out(fid) 2061 2061 ENDIF 2062 2062 !- … … 2134 2134 !- 2135 2135 IF (l_dbg) THEN 2136 WRITE( *,*) 'restdefv 2.0 :',ndim,' :: ',dims(1:ndim),tdimid_out(fid)2136 WRITE(ipslout,*) 'restdefv 2.0 :',ndim,' :: ',dims(1:ndim),tdimid_out(fid) 2137 2137 ENDIF 2138 2138 !- … … 2169 2169 !- 2170 2170 IF (l_dbg) THEN 2171 WRITE( *,*) &2171 WRITE(ipslout,*) & 2172 2172 & 'restdefv 3.0 : LIST OF VARS ',varname_out(fid,1:nbvar_out(fid)) 2173 2173 ENDIF … … 2193 2193 IF (.NOT.ALLOCATED(t_index) .AND. .NOT.ALLOCATED(t_julian)) THEN 2194 2194 IF (l_msg) THEN 2195 WRITE( *,*) TRIM(c_p)//' : Allocate times axes at :', &2195 WRITE(ipslout,*) TRIM(c_p)//' : Allocate times axes at :', & 2196 2196 & max_file,tax_size_in(nb_fi) 2197 2197 ENDIF … … 2199 2199 ALLOCATE(t_index(max_file,tax_size_in(nb_fi)),STAT=i_err) 2200 2200 IF (i_err/=0) THEN 2201 WRITE( *,*) "ERROR IN ALLOCATION of t_index : ",i_err2201 WRITE(ipslout,*) "ERROR IN ALLOCATION of t_index : ",i_err 2202 2202 CALL ipslerr (3,TRIM(c_p), & 2203 2203 & 'Problem in allocation of t_index','', & … … 2208 2208 ALLOCATE(t_julian(max_file,tax_size_in(nb_fi)),STAT=i_err) 2209 2209 IF (i_err/=0) THEN 2210 WRITE( *,*) "ERROR IN ALLOCATION of t_julian : ",i_err2210 WRITE(ipslout,*) "ERROR IN ALLOCATION of t_julian : ",i_err 2211 2211 CALL ipslerr (3,TRIM(c_p), & 2212 2212 & 'Problem in allocation of max_file,tax_size_in','', & … … 2217 2217 & .OR.(SIZE(t_julian,DIM=2) < tax_size_in(nb_fi)) ) THEN 2218 2218 IF (l_msg) THEN 2219 WRITE( *,*) TRIM(c_p)//' : Reallocate times axes at :', &2219 WRITE(ipslout,*) TRIM(c_p)//' : Reallocate times axes at :', & 2220 2220 & max_file,tax_size_in(nb_fi) 2221 2221 ENDIF … … 2223 2223 ALLOCATE (tmp_index(max_file,tax_size_in(nb_fi)),STAT=i_err) 2224 2224 IF (i_err/=0) THEN 2225 WRITE( *,*) "ERROR IN ALLOCATION of tmp_index : ",i_err2225 WRITE(ipslout,*) "ERROR IN ALLOCATION of tmp_index : ",i_err 2226 2226 CALL ipslerr (3,TRIM(c_p), & 2227 2227 & 'Problem in allocation of tmp_index','', & … … 2233 2233 ALLOCATE (t_index(max_file,tax_size_in(nb_fi)),STAT=i_err) 2234 2234 IF (i_err/=0) THEN 2235 WRITE( *,*) "ERROR IN ALLOCATION of t_index : ",i_err2235 WRITE(ipslout,*) "ERROR IN ALLOCATION of t_index : ",i_err 2236 2236 CALL ipslerr (3,TRIM(c_p), & 2237 2237 & 'Problem in reallocation of t_index','', & … … 2242 2242 ALLOCATE (tmp_julian(max_file,tax_size_in(nb_fi)),STAT=i_err) 2243 2243 IF (i_err/=0) THEN 2244 WRITE( *,*) "ERROR IN ALLOCATION of tmp_julian : ",i_err2244 WRITE(ipslout,*) "ERROR IN ALLOCATION of tmp_julian : ",i_err 2245 2245 CALL ipslerr (3,TRIM(c_p), & 2246 2246 & 'Problem in allocation of tmp_julian','', & … … 2252 2252 ALLOCATE (t_julian(max_file,tax_size_in(nb_fi)),STAT=i_err) 2253 2253 IF (i_err/=0) THEN 2254 WRITE( *,*) "ERROR IN ALLOCATION of t_julian : ",i_err2254 WRITE(ipslout,*) "ERROR IN ALLOCATION of t_julian : ",i_err 2255 2255 CALL ipslerr (3,TRIM(c_p), & 2256 2256 & 'Problem in reallocation of t_julian','', & … … 2308 2308 IF ( (l_alloc1.AND.ALLOCATED(buff_tmp1)) & 2309 2309 & .OR.(l_alloc2.AND.ALLOCATED(buff_tmp2)) ) THEN 2310 WRITE( *,*) TRIM(c_p)//" : re_allocate "//TRIM(cbn)//"=",i_qsz2310 WRITE(ipslout,*) TRIM(c_p)//" : re_allocate "//TRIM(cbn)//"=",i_qsz 2311 2311 ELSE 2312 WRITE( *,*) TRIM(c_p)//" : allocate "//TRIM(cbn)//"=",i_qsz2312 WRITE(ipslout,*) TRIM(c_p)//" : allocate "//TRIM(cbn)//"=",i_qsz 2313 2313 ENDIF 2314 2314 ENDIF … … 2479 2479 !--- 2480 2480 IF (l_dbg) THEN 2481 WRITE( *,*) &2481 WRITE(ipslout,*) & 2482 2482 'restclo : Closing specified restart file number :', & 2483 2483 fid,netcdf_id(fid,1:2) … … 2511 2511 ELSE 2512 2512 !--- 2513 IF (l_dbg) WRITE( *,*) 'restclo : Closing all files'2513 IF (l_dbg) WRITE(ipslout,*) 'restclo : Closing all files' 2514 2514 !--- 2515 2515 DO ifnc=1,nb_fi
Note: See TracChangeset
for help on using the changeset viewer.