Changeset 5748 for LMDZ6/trunk/libf/phylmdiso/isotopes_mod.F90
- Timestamp:
- Jul 2, 2025, 12:00:08 PM (2 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmdiso/isotopes_mod.F90
r5267 r5748 3 3 4 4 MODULE isotopes_mod 5 USE strings_mod, ONLY: msg, real2str, int2str, bool2str, maxlen, strIdx, strStack5 USE strings_mod, ONLY: msg, num2str, maxlen, strIdx, strStack 6 6 USE infotrac_phy, ONLY: isoName, niso, ntiso 7 7 USE iso_params_mod … … 173 173 174 174 !--- Check number of isotopes 175 CALL msg('64: niso = '//TRIM( int2str(niso)), modname)175 CALL msg('64: niso = '//TRIM(num2str(niso)), modname) 176 176 177 177 !--- Init de ntracisoOR: on ecrasera en cas de traceurs de tagging isotopiques … … 180 180 181 181 !--- Type of water isotopes: 182 iso_eau = strIdx(isoName, 'H216O'); CALL msg('iso_eau='// int2str(iso_eau), modname)183 iso_HDO = strIdx(isoName, 'HDO'); CALL msg('iso_HDO='// int2str(iso_HDO), modname)184 iso_O18 = strIdx(isoName, 'H218O'); CALL msg('iso_O18='// int2str(iso_O18), modname)185 iso_O17 = strIdx(isoName, 'H217O'); CALL msg('iso_O17='// int2str(iso_O17), modname)186 iso_HTO = strIdx(isoName, 'HTO'); CALL msg('iso_HTO='// int2str(iso_HTO), modname)182 iso_eau = strIdx(isoName, 'H216O'); CALL msg('iso_eau='//num2str(iso_eau), modname) 183 iso_HDO = strIdx(isoName, 'HDO'); CALL msg('iso_HDO='//num2str(iso_HDO), modname) 184 iso_O18 = strIdx(isoName, 'H218O'); CALL msg('iso_O18='//num2str(iso_O18), modname) 185 iso_O17 = strIdx(isoName, 'H217O'); CALL msg('iso_O17='//num2str(iso_O17), modname) 186 iso_HTO = strIdx(isoName, 'HTO'); CALL msg('iso_HTO='//num2str(iso_HTO), modname) 187 187 188 188 !--- Initialisation: reading the isotopic parameters. … … 204 204 CALL get_in('dsstlatcrit', dsstlatcrit, 0.0) !--- For modif_sst>=3 205 205 #ifdef ISOVERIF 206 CALL msg('iso_init 270: sstlatcrit='// real2str( sstlatcrit), modname, sstlatcrit < 0.0) !--- For modif_sst>=2207 CALL msg('iso_init 279: dsstlatcrit='// real2str(dsstlatcrit), modname, sstlatcrit < 0.0) !--- For modif_sst>=3206 CALL msg('iso_init 270: sstlatcrit='//num2str( sstlatcrit), modname, sstlatcrit < 0.0) !--- For modif_sst>=2 207 CALL msg('iso_init 279: dsstlatcrit='//num2str(dsstlatcrit), modname, sstlatcrit < 0.0) !--- For modif_sst>=3 208 208 IF(modif_sst >= 2 .AND. sstlatcrit < 0.0) STOP 209 209 #endif … … 234 234 CALL get_in('region_nudge_qsol', region_nudge_qsol, 1) 235 235 nlevmaxO17 = 50 236 CALL msg('nlevmaxO17='//TRIM( int2str(nlevmaxO17)))236 CALL msg('nlevmaxO17='//TRIM(num2str(nlevmaxO17))) 237 237 CALL get_in('no_pce', no_pce, 0) 238 238 CALL get_in('A_satlim', A_satlim, 1.0) 239 239 CALL get_in('ok_restrict_A_satlim', ok_restrict_A_satlim, 0) 240 240 #ifdef ISOVERIF 241 CALL msg(' 315: A_satlim='// real2str(A_satlim), modname, A_satlim > 1.0)241 CALL msg(' 315: A_satlim='//num2str(A_satlim), modname, A_satlim > 1.0) 242 242 IF(A_satlim > 1.0) STOP 243 243 #endif … … 256 256 CALL get_in('tnateq1', ltnat1, .TRUE.) 257 257 258 CALL msg('iso_O18, iso_HDO, iso_eau = '//TRIM(strStack( int2str([iso_O18, iso_HDO, iso_eau]))), modname)258 CALL msg('iso_O18, iso_HDO, iso_eau = '//TRIM(strStack(num2str([iso_O18, iso_HDO, iso_eau]))), modname) 259 259 260 260 !-------------------------------------------------------------- … … 363 363 CALL msg('285: verif initialisation:', modname) 364 364 DO ixt=1,niso 365 sxt= int2str(ixt)365 sxt=num2str(ixt) 366 366 CALL msg(' * isoName('//TRIM(sxt)//') = <'//TRIM(isoName(ixt))//'>', modname) 367 CALL msg( ' tnat('//TRIM(sxt)//') = '//TRIM( real2str(tnat(ixt))), modname)368 ! CALL msg(' alpha_liq_sol('//TRIM(sxt)//') = '//TRIM( real2str(alpha_liq_sol(ixt))), modname)369 ! CALL msg( ' tkcin0('//TRIM(sxt)//') = '//TRIM( real2str(tkcin0(ixt))), modname)370 ! CALL msg( ' tdifrel('//TRIM(sxt)//') = '//TRIM( real2str(tdifrel(ixt))), modname)367 CALL msg( ' tnat('//TRIM(sxt)//') = '//TRIM(num2str(tnat(ixt))), modname) 368 ! CALL msg(' alpha_liq_sol('//TRIM(sxt)//') = '//TRIM(num2str(alpha_liq_sol(ixt))), modname) 369 ! CALL msg( ' tkcin0('//TRIM(sxt)//') = '//TRIM(num2str(tkcin0(ixt))), modname) 370 ! CALL msg( ' tdifrel('//TRIM(sxt)//') = '//TRIM(num2str(tdifrel(ixt))), modname) 371 371 END DO 372 CALL msg('69: lambda = '//TRIM( real2str(lambda_sursat)), modname)373 CALL msg('69: thumxt1 = '//TRIM( real2str(thumxt1)), modname)374 CALL msg('69: h_land_ice = '//TRIM( real2str(h_land_ice)), modname)375 CALL msg('69: P_veg = '//TRIM( real2str(P_veg)), modname)372 CALL msg('69: lambda = '//TRIM(num2str(lambda_sursat)), modname) 373 CALL msg('69: thumxt1 = '//TRIM(num2str(thumxt1)), modname) 374 CALL msg('69: h_land_ice = '//TRIM(num2str(h_land_ice)), modname) 375 CALL msg('69: P_veg = '//TRIM(num2str(P_veg)), modname) 376 376 377 377 END SUBROUTINE iso_init … … 411 411 IF(PRESENT(def)) val=def; CALL getin(nam,val) 412 412 lD=.TRUE.; IF(PRESENT(lDisp)) lD=lDisp 413 IF(lD) CALL msg(TRIM(nam)//' = '//TRIM( int2str(val)))413 IF(lD) CALL msg(TRIM(nam)//' = '//TRIM(num2str(val))) 414 414 END IF 415 415 CALL bcast(val) … … 430 430 IF(PRESENT(def)) val=def; CALL getin(nam,val) 431 431 lD=.TRUE.; IF(PRESENT(lDisp)) lD=lDisp 432 IF(lD) CALL msg(TRIM(nam)//' = '//TRIM( real2str(val)))432 IF(lD) CALL msg(TRIM(nam)//' = '//TRIM(num2str(val))) 433 433 END IF 434 434 CALL bcast(val) … … 449 449 IF(PRESENT(def)) val=def; CALL getin(nam,val) 450 450 lD=.TRUE.; IF(PRESENT(lDisp)) lD=lDisp 451 IF(lD) CALL msg(TRIM(nam)//' = '//TRIM( bool2str(val)))451 IF(lD) CALL msg(TRIM(nam)//' = '//TRIM(num2str(val))) 452 452 END IF 453 453 CALL bcast(val)
Note: See TracChangeset
for help on using the changeset viewer.