- Timestamp:
- 07/16/14 18:05:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/inifis.F
r222 r227 10 10 use comsoil_h, only: ini_comsoil_h 11 11 use control_mod, only: ecritphy 12 use planete_mod, only: nres 12 13 use planetwide_mod, only: planetwide_sumval 13 14 … … 49 50 use datafile_mod, only: datadir 50 51 ! to use 'getin' 51 USE ioipsl_getincom 52 ! USE ioipsl_getincom 53 USE ioipsl_getincom_p 52 54 IMPLICIT NONE 53 #include "dimensions.h"54 #include "dimphys.h"55 #include "planete.h"55 !#include "dimensions.h" 56 !#include "dimphys.h" 57 !#include "planete.h" 56 58 #include "comcstfi.h" 57 59 #include "callkeys.h" … … 78 80 real psurf,pN2 ! added by RW for Gliese 581d N2+CO2 79 81 82 !$OMP MASTER 80 83 rad=prad 81 84 daysec=pdaysec … … 88 91 avocado = 6.02214179e23 ! added by RW 89 92 90 ! -------------------------------------------------------- 91 ! The usual Tests 92 ! -------------- 93 IF (nlayer.NE.nlayermx) THEN 94 PRINT*,'STOP in inifis' 95 PRINT*,'Probleme de dimensions :' 96 PRINT*,'nlayer = ',nlayer 97 PRINT*,'nlayermx = ',nlayermx 98 STOP 99 ENDIF 93 !$OMP END MASTER 94 !$OMP BARRIER 100 95 101 96 ! read in 'ecritphy' (frequency of calls to physics, in dynamical steps) 102 97 ! (also done in dyn3d/defrun_new but not in LMDZ.COMMON) 103 call getin ("ecritphy",ecritphy)98 call getin_p("ecritphy",ecritphy) 104 99 105 100 ! -------------------------------------------------------------- … … 107 102 ! -------------------------------------------------------------- 108 103 104 !$OMP MASTER 109 105 ! check that 'callphys.def' file is around 110 106 OPEN(99,file='callphys.def',status='old',form='formatted' 111 107 & ,iostat=ierr) 112 108 CLOSE(99) 109 IF(ierr.EQ.0) iscallphys=.true. !iscallphys initialised as false in callkeys.h 110 !$OMP END MASTER 111 !$OMP BARRIER 113 112 114 IF(ierr.EQ.0) THEN 113 !!! IF(ierr.EQ.0) THEN 114 IF(iscallphys) THEN 115 115 PRINT* 116 116 PRINT* … … 121 121 write(*,*) "Directory where external input files are:" 122 122 ! default 'datadir' is set in "datadir_mod" 123 call getin ("datadir",datadir) ! default path123 call getin_p("datadir",datadir) ! default path 124 124 write(*,*) " datadir = ",trim(datadir) 125 125 126 126 write(*,*) "Run with or without tracer transport ?" 127 127 tracer=.false. ! default value 128 call getin ("tracer",tracer)128 call getin_p("tracer",tracer) 129 129 write(*,*) " tracer = ",tracer 130 130 … … 132 132 & " due to tracer evaporation/condensation?" 133 133 mass_redistrib=.false. ! default value 134 call getin ("mass_redistrib",mass_redistrib)134 call getin_p("mass_redistrib",mass_redistrib) 135 135 write(*,*) " mass_redistrib = ",mass_redistrib 136 136 … … 138 138 write(*,*) "(if diurnal=false, diurnal averaged solar heating)" 139 139 diurnal=.true. ! default value 140 call getin ("diurnal",diurnal)140 call getin_p("diurnal",diurnal) 141 141 write(*,*) " diurnal = ",diurnal 142 142 … … 145 145 & "set in 'start'" 146 146 season=.true. ! default value 147 call getin ("season",season)147 call getin_p("season",season) 148 148 write(*,*) " season = ",season 149 149 150 150 write(*,*) "Tidally resonant rotation ?" 151 151 tlocked=.false. ! default value 152 call getin ("tlocked",tlocked)152 call getin_p("tlocked",tlocked) 153 153 write(*,*) "tlocked = ",tlocked 154 154 155 155 write(*,*) "Saturn ring shadowing ?" 156 156 rings_shadow = .false. 157 call getin ("rings_shadow", rings_shadow)157 call getin_p("rings_shadow", rings_shadow) 158 158 write(*,*) "rings_shadow = ", rings_shadow 159 159 160 160 write(*,*) "Compute latitude-dependent gravity field?" 161 161 oblate = .false. 162 call getin ("oblate", oblate)162 call getin_p("oblate", oblate) 163 163 write(*,*) "oblate = ", oblate 164 164 165 165 write(*,*) "Flattening of the planet (a-b)/a " 166 166 flatten = 0.0 167 call getin ("flatten", flatten)167 call getin_p("flatten", flatten) 168 168 write(*,*) "flatten = ", flatten 169 169 … … 171 171 write(*,*) "Needed if oblate=.true.: J2" 172 172 J2 = 0.0 173 call getin ("J2", J2)173 call getin_p("J2", J2) 174 174 write(*,*) "J2 = ", J2 175 175 176 176 write(*,*) "Needed if oblate=.true.: Planet mass (*1e24 kg)" 177 177 MassPlanet = 0.0 178 call getin ("MassPlanet", MassPlanet)178 call getin_p("MassPlanet", MassPlanet) 179 179 write(*,*) "MassPlanet = ", MassPlanet 180 180 181 181 write(*,*) "Needed if oblate=.true.: Planet mean radius (m)" 182 182 Rmean = 0.0 183 call getin ("Rmean", Rmean)183 call getin_p("Rmean", Rmean) 184 184 write(*,*) "Rmean = ", Rmean 185 185 … … 193 193 write(*,*) "Tidal resonance ratio ?" 194 194 nres=0 ! default value 195 call getin ("nres",nres)195 call getin_p("nres",nres) 196 196 write(*,*) "nres = ",nres 197 197 198 198 write(*,*) "Write some extra output to the screen ?" 199 199 lwrite=.false. ! default value 200 call getin ("lwrite",lwrite)200 call getin_p("lwrite",lwrite) 201 201 write(*,*) " lwrite = ",lwrite 202 202 203 203 write(*,*) "Save statistics in file stats.nc ?" 204 204 callstats=.true. ! default value 205 call getin ("callstats",callstats)205 call getin_p("callstats",callstats) 206 206 write(*,*) " callstats = ",callstats 207 207 208 208 write(*,*) "Test energy conservation of model physics ?" 209 209 enertest=.false. ! default value 210 call getin ("enertest",enertest)210 call getin_p("enertest",enertest) 211 211 write(*,*) " enertest = ",enertest 212 212 213 213 write(*,*) "Check to see if cpp values used match gases.def ?" 214 214 check_cpp_match=.true. ! default value 215 call getin ("check_cpp_match",check_cpp_match)215 call getin_p("check_cpp_match",check_cpp_match) 216 216 write(*,*) " check_cpp_match = ",check_cpp_match 217 217 218 218 write(*,*) "call radiative transfer ?" 219 219 callrad=.true. ! default value 220 call getin ("callrad",callrad)220 call getin_p("callrad",callrad) 221 221 write(*,*) " callrad = ",callrad 222 222 223 223 write(*,*) "call correlated-k radiative transfer ?" 224 224 corrk=.true. ! default value 225 call getin ("corrk",corrk)225 call getin_p("corrk",corrk) 226 226 write(*,*) " corrk = ",corrk 227 227 228 228 write(*,*) "prohibit calculations outside corrk T grid?" 229 229 strictboundcorrk=.true. ! default value 230 call getin ("strictboundcorrk",strictboundcorrk)230 call getin_p("strictboundcorrk",strictboundcorrk) 231 231 write(*,*) "strictboundcorrk = ",strictboundcorrk 232 232 … … 234 234 & "(matters only if callrad=T)" 235 235 callgasvis=.false. ! default value 236 call getin ("callgasvis",callgasvis)236 call getin_p("callgasvis",callgasvis) 237 237 write(*,*) " callgasvis = ",callgasvis 238 238 … … 240 240 & "(matters only if callrad=T)" 241 241 continuum=.true. ! default value 242 call getin ("continuum",continuum)242 call getin_p("continuum",continuum) 243 243 write(*,*) " continuum = ",continuum 244 244 245 245 write(*,*) "use analytic function for H2O continuum ?" 246 246 H2Ocont_simple=.false. ! default value 247 call getin ("H2Ocont_simple",H2Ocont_simple)247 call getin_p("H2Ocont_simple",H2Ocont_simple) 248 248 write(*,*) " H2Ocont_simple = ",H2Ocont_simple 249 249 250 250 write(*,*) "call turbulent vertical diffusion ?" 251 251 calldifv=.true. ! default value 252 call getin ("calldifv",calldifv)252 call getin_p("calldifv",calldifv) 253 253 write(*,*) " calldifv = ",calldifv 254 254 255 255 write(*,*) "use turbdiff instead of vdifc ?" 256 256 UseTurbDiff=.true. ! default value 257 call getin ("UseTurbDiff",UseTurbDiff)257 call getin_p("UseTurbDiff",UseTurbDiff) 258 258 write(*,*) " UseTurbDiff = ",UseTurbDiff 259 259 260 260 write(*,*) "call convective adjustment ?" 261 261 calladj=.true. ! default value 262 call getin ("calladj",calladj)262 call getin_p("calladj",calladj) 263 263 write(*,*) " calladj = ",calladj 264 264 265 265 write(*,*) "call CO2 condensation ?" 266 266 co2cond=.false. ! default value 267 call getin ("co2cond",co2cond)267 call getin_p("co2cond",co2cond) 268 268 write(*,*) " co2cond = ",co2cond 269 269 ! Test of incompatibility … … 275 275 write(*,*) "CO2 supersaturation level ?" 276 276 co2supsat=1.0 ! default value 277 call getin ("co2supsat",co2supsat)277 call getin_p("co2supsat",co2supsat) 278 278 write(*,*) " co2supsat = ",co2supsat 279 279 280 280 write(*,*) "Radiative timescale for Newtonian cooling ?" 281 281 tau_relax=30. ! default value 282 call getin ("tau_relax",tau_relax)282 call getin_p("tau_relax",tau_relax) 283 283 write(*,*) " tau_relax = ",tau_relax 284 284 tau_relax=tau_relax*24*3600 ! convert Earth days --> seconds … … 286 286 write(*,*)"call thermal conduction in the soil ?" 287 287 callsoil=.true. ! default value 288 call getin ("callsoil",callsoil)288 call getin_p("callsoil",callsoil) 289 289 write(*,*) " callsoil = ",callsoil 290 290 … … 292 292 & " physical timestep" 293 293 iradia=1 ! default value 294 call getin ("iradia",iradia)294 call getin_p("iradia",iradia) 295 295 write(*,*)" iradia = ",iradia 296 296 297 297 write(*,*)"Rayleigh scattering ?" 298 298 rayleigh=.false. 299 call getin ("rayleigh",rayleigh)299 call getin_p("rayleigh",rayleigh) 300 300 write(*,*)" rayleigh = ",rayleigh 301 301 302 302 write(*,*) "Use blackbody for stellar spectrum ?" 303 303 stelbbody=.false. ! default value 304 call getin ("stelbbody",stelbbody)304 call getin_p("stelbbody",stelbbody) 305 305 write(*,*) " stelbbody = ",stelbbody 306 306 307 307 write(*,*) "Stellar blackbody temperature ?" 308 308 stelTbb=5800.0 ! default value 309 call getin ("stelTbb",stelTbb)309 call getin_p("stelTbb",stelTbb) 310 310 write(*,*) " stelTbb = ",stelTbb 311 311 312 312 write(*,*)"Output mean OLR in 1D?" 313 313 meanOLR=.false. 314 call getin ("meanOLR",meanOLR)314 call getin_p("meanOLR",meanOLR) 315 315 write(*,*)" meanOLR = ",meanOLR 316 316 317 317 write(*,*)"Output spectral OLR in 3D?" 318 318 specOLR=.false. 319 call getin ("specOLR",specOLR)319 call getin_p("specOLR",specOLR) 320 320 write(*,*)" specOLR = ",specOLR 321 321 322 322 write(*,*)"Operate in kastprof mode?" 323 323 kastprof=.false. 324 call getin ("kastprof",kastprof)324 call getin_p("kastprof",kastprof) 325 325 write(*,*)" kastprof = ",kastprof 326 326 327 327 write(*,*)"Uniform absorption in radiative transfer?" 328 328 graybody=.false. 329 call getin ("graybody",graybody)329 call getin_p("graybody",graybody) 330 330 write(*,*)" graybody = ",graybody 331 331 … … 333 333 write(*,*) "Use slab-ocean ?" 334 334 ok_slab_ocean=.false. ! default value 335 call getin ("ok_slab_ocean",ok_slab_ocean)335 call getin_p("ok_slab_ocean",ok_slab_ocean) 336 336 write(*,*) "ok_slab_ocean = ",ok_slab_ocean 337 337 338 338 write(*,*) "Use slab-sea-ice ?" 339 339 ok_slab_sic=.true. ! default value 340 call getin ("ok_slab_sic",ok_slab_sic)340 call getin_p("ok_slab_sic",ok_slab_sic) 341 341 write(*,*) "ok_slab_sic = ",ok_slab_sic 342 342 343 343 write(*,*) "Use heat transport for the ocean ?" 344 344 ok_slab_heat_transp=.true. ! default value 345 call getin ("ok_slab_heat_transp",ok_slab_heat_transp)345 call getin_p("ok_slab_heat_transp",ok_slab_heat_transp) 346 346 write(*,*) "ok_slab_heat_transp = ",ok_slab_heat_transp 347 347 … … 357 357 write(*,*)"Stratospheric temperature for kastprof mode?" 358 358 Tstrat=167.0 359 call getin ("Tstrat",Tstrat)359 call getin_p("Tstrat",Tstrat) 360 360 write(*,*)" Tstrat = ",Tstrat 361 361 362 362 write(*,*)"Remove lower boundary?" 363 363 nosurf=.false. 364 call getin ("nosurf",nosurf)364 call getin_p("nosurf",nosurf) 365 365 write(*,*)" nosurf = ",nosurf 366 366 … … 375 375 . "... matters only if callsoil=F" 376 376 intheat=0. 377 call getin ("intheat",intheat)377 call getin_p("intheat",intheat) 378 378 write(*,*)" intheat = ",intheat 379 379 380 380 write(*,*)"Use Newtonian cooling for radiative transfer?" 381 381 newtonian=.false. 382 call getin ("newtonian",newtonian)382 call getin_p("newtonian",newtonian) 383 383 write(*,*)" newtonian = ",newtonian 384 384 … … 399 399 write(*,*)"Test physics timescale in 1D?" 400 400 testradtimes=.false. 401 call getin ("testradtimes",testradtimes)401 call getin_p("testradtimes",testradtimes) 402 402 write(*,*)" testradtimes = ",testradtimes 403 403 … … 411 411 write(*,*)"Default planetary temperature?" 412 412 tplanet=215.0 413 call getin ("tplanet",tplanet)413 call getin_p("tplanet",tplanet) 414 414 write(*,*)" tplanet = ",tplanet 415 415 416 416 write(*,*)"Which star?" 417 417 startype=1 ! default value = Sol 418 call getin ("startype",startype)418 call getin_p("startype",startype) 419 419 write(*,*)" startype = ",startype 420 420 421 421 write(*,*)"Value of stellar flux at 1 AU?" 422 422 Fat1AU=1356.0 ! default value = Sol today 423 call getin ("Fat1AU",Fat1AU)423 call getin_p("Fat1AU",Fat1AU) 424 424 write(*,*)" Fat1AU = ",Fat1AU 425 425 … … 429 429 write(*,*)"Varying H2O cloud fraction?" 430 430 CLFvarying=.false. ! default value 431 call getin ("CLFvarying",CLFvarying)431 call getin_p("CLFvarying",CLFvarying) 432 432 write(*,*)" CLFvarying = ",CLFvarying 433 433 434 434 write(*,*)"Value of fixed H2O cloud fraction?" 435 435 CLFfixval=1.0 ! default value 436 call getin ("CLFfixval",CLFfixval)436 call getin_p("CLFfixval",CLFfixval) 437 437 write(*,*)" CLFfixval = ",CLFfixval 438 438 439 439 write(*,*)"fixed radii for Cloud particles?" 440 440 radfixed=.false. ! default value 441 call getin ("radfixed",radfixed)441 call getin_p("radfixed",radfixed) 442 442 write(*,*)" radfixed = ",radfixed 443 443 … … 448 448 write(*,*)"Number mixing ratio of CO2 ice particles:" 449 449 Nmix_co2=1.e6 ! default value 450 call getin ("Nmix_co2",Nmix_co2)450 call getin_p("Nmix_co2",Nmix_co2) 451 451 write(*,*)" Nmix_co2 = ",Nmix_co2 452 452 453 453 ! write(*,*)"Number of radiatively active aerosols:" 454 454 ! naerkind=0. ! default value 455 ! call getin ("naerkind",naerkind)455 ! call getin_p("naerkind",naerkind) 456 456 ! write(*,*)" naerkind = ",naerkind 457 457 458 458 write(*,*)"Opacity of dust (if used):" 459 459 dusttau=0. ! default value 460 call getin ("dusttau",dusttau)460 call getin_p("dusttau",dusttau) 461 461 write(*,*)" dusttau = ",dusttau 462 462 463 463 write(*,*)"Radiatively active CO2 aerosols?" 464 464 aeroco2=.false. ! default value 465 call getin ("aeroco2",aeroco2)465 call getin_p("aeroco2",aeroco2) 466 466 write(*,*)" aeroco2 = ",aeroco2 467 467 468 468 write(*,*)"Fixed CO2 aerosol distribution?" 469 469 aerofixco2=.false. ! default value 470 call getin ("aerofixco2",aerofixco2)470 call getin_p("aerofixco2",aerofixco2) 471 471 write(*,*)" aerofixco2 = ",aerofixco2 472 472 473 473 write(*,*)"Radiatively active water ice?" 474 474 aeroh2o=.false. ! default value 475 call getin ("aeroh2o",aeroh2o)475 call getin_p("aeroh2o",aeroh2o) 476 476 write(*,*)" aeroh2o = ",aeroh2o 477 477 478 478 write(*,*)"Fixed H2O aerosol distribution?" 479 479 aerofixh2o=.false. ! default value 480 call getin ("aerofixh2o",aerofixh2o)480 call getin_p("aerofixh2o",aerofixh2o) 481 481 write(*,*)" aerofixh2o = ",aerofixh2o 482 482 483 483 write(*,*)"Radiatively active sulfuric acid aersols?" 484 484 aeroh2so4=.false. ! default value 485 call getin ("aeroh2so4",aeroh2so4)485 call getin_p("aeroh2so4",aeroh2so4) 486 486 write(*,*)" aeroh2so4 = ",aeroh2so4 487 487 … … 490 490 write(*,*)"Radiatively active two-layer aersols?" 491 491 aeroback2lay=.false. ! default value 492 call getin ("aeroback2lay",aeroback2lay)492 call getin_p("aeroback2lay",aeroback2lay) 493 493 write(*,*)" aeroback2lay = ",aeroback2lay 494 494 … … 496 496 & "in the tropospheric layer (visible)" 497 497 obs_tau_col_tropo=8.D0 498 call getin ("obs_tau_col_tropo",obs_tau_col_tropo)498 call getin_p("obs_tau_col_tropo",obs_tau_col_tropo) 499 499 write(*,*)" obs_tau_col_tropo = ",obs_tau_col_tropo 500 500 … … 502 502 & "in the stratospheric layer (visible)" 503 503 obs_tau_col_strato=0.08D0 504 call getin ("obs_tau_col_strato",obs_tau_col_strato)504 call getin_p("obs_tau_col_strato",obs_tau_col_strato) 505 505 write(*,*)" obs_tau_col_strato = ",obs_tau_col_strato 506 506 507 507 write(*,*)"TWOLAY AEROSOL: pres_bottom_tropo? in pa" 508 508 pres_bottom_tropo=66000.0 509 call getin ("pres_bottom_tropo",pres_bottom_tropo)509 call getin_p("pres_bottom_tropo",pres_bottom_tropo) 510 510 write(*,*)" pres_bottom_tropo = ",pres_bottom_tropo 511 511 512 512 write(*,*)"TWOLAY AEROSOL: pres_top_tropo? in pa" 513 513 pres_top_tropo=18000.0 514 call getin ("pres_top_tropo",pres_top_tropo)514 call getin_p("pres_top_tropo",pres_top_tropo) 515 515 write(*,*)" pres_top_tropo = ",pres_top_tropo 516 516 517 517 write(*,*)"TWOLAY AEROSOL: pres_bottom_strato? in pa" 518 518 pres_bottom_strato=2000.0 519 call getin ("pres_bottom_strato",pres_bottom_strato)519 call getin_p("pres_bottom_strato",pres_bottom_strato) 520 520 write(*,*)" pres_bottom_strato = ",pres_bottom_strato 521 521 522 522 write(*,*)"TWOLAY AEROSOL: pres_top_strato? in pa" 523 523 pres_top_strato=100.0 524 call getin ("pres_top_strato",pres_top_strato)524 call getin_p("pres_top_strato",pres_top_strato) 525 525 write(*,*)" pres_top_strato = ",pres_top_strato 526 526 … … 528 528 & "tropospheric layer, in meters" 529 529 size_tropo=2.e-6 530 call getin ("size_tropo",size_tropo)530 call getin_p("size_tropo",size_tropo) 531 531 write(*,*)" size_tropo = ",size_tropo 532 532 … … 534 534 & "stratospheric layer, in meters" 535 535 size_strato=1.e-7 536 call getin ("size_strato",size_strato)536 call getin_p("size_strato",size_strato) 537 537 write(*,*)" size_strato = ",size_strato 538 538 … … 541 541 write(*,*)"Cloud pressure level (with kastprof only):" 542 542 cloudlvl=0. ! default value 543 call getin ("cloudlvl",cloudlvl)543 call getin_p("cloudlvl",cloudlvl) 544 544 write(*,*)" cloudlvl = ",cloudlvl 545 545 … … 547 547 Tstrat=167.0 548 548 varactive=.false. 549 call getin ("varactive",varactive)549 call getin_p("varactive",varactive) 550 550 write(*,*)" varactive = ",varactive 551 551 552 552 write(*,*)"Is the variable gas species distribution set?" 553 553 varfixed=.false. 554 call getin ("varfixed",varfixed)554 call getin_p("varfixed",varfixed) 555 555 write(*,*)" varfixed = ",varfixed 556 556 557 557 write(*,*)"What is the saturation % of the variable species?" 558 558 satval=0.8 559 call getin ("satval",satval)559 call getin_p("satval",satval) 560 560 write(*,*)" satval = ",satval 561 561 … … 570 570 write(*,*) "Gravitationnal sedimentation ?" 571 571 sedimentation=.false. ! default value 572 call getin ("sedimentation",sedimentation)572 call getin_p("sedimentation",sedimentation) 573 573 write(*,*) " sedimentation = ",sedimentation 574 574 575 575 write(*,*) "Compute water cycle ?" 576 576 water=.false. ! default value 577 call getin ("water",water)577 call getin_p("water",water) 578 578 write(*,*) " water = ",water 579 579 … … 587 587 write(*,*) "Include water condensation ?" 588 588 watercond=.false. ! default value 589 call getin ("watercond",watercond)589 call getin_p("watercond",watercond) 590 590 write(*,*) " watercond = ",watercond 591 591 … … 599 599 write(*,*) "Include water precipitation ?" 600 600 waterrain=.false. ! default value 601 call getin ("waterrain",waterrain)601 call getin_p("waterrain",waterrain) 602 602 write(*,*) " waterrain = ",waterrain 603 603 604 604 write(*,*) "Include surface hydrology ?" 605 605 hydrology=.false. ! default value 606 call getin ("hydrology",hydrology)606 call getin_p("hydrology",hydrology) 607 607 write(*,*) " hydrology = ",hydrology 608 608 609 609 write(*,*) "Evolve surface water sources ?" 610 610 sourceevol=.false. ! default value 611 call getin ("sourceevol",sourceevol)611 call getin_p("sourceevol",sourceevol) 612 612 write(*,*) " sourceevol = ",sourceevol 613 613 614 614 write(*,*) "Ice evolution timestep ?" 615 615 icetstep=100.0 ! default value 616 call getin ("icetstep",icetstep)616 call getin_p("icetstep",icetstep) 617 617 write(*,*) " icetstep = ",icetstep 618 618 619 619 write(*,*) "Snow albedo ?" 620 620 albedosnow=0.5 ! default value 621 call getin ("albedosnow",albedosnow)621 call getin_p("albedosnow",albedosnow) 622 622 write(*,*) " albedosnow = ",albedosnow 623 623 624 624 write(*,*) "Maximum ice thickness ?" 625 625 maxicethick=2.0 ! default value 626 call getin ("maxicethick",maxicethick)626 call getin_p("maxicethick",maxicethick) 627 627 write(*,*) " maxicethick = ",maxicethick 628 628 629 629 write(*,*) "Freezing point of seawater ?" 630 630 Tsaldiff=-1.8 ! default value 631 call getin ("Tsaldiff",Tsaldiff)631 call getin_p("Tsaldiff",Tsaldiff) 632 632 write(*,*) " Tsaldiff = ",Tsaldiff 633 633 634 634 write(*,*) "Does user want to force cpp and mugaz?" 635 635 force_cpp=.false. ! default value 636 call getin ("force_cpp",force_cpp)636 call getin_p("force_cpp",force_cpp) 637 637 write(*,*) " force_cpp = ",force_cpp 638 638 … … 640 640 mugaz = -99999. 641 641 PRINT *,'MEAN MOLECULAR MASS in g mol-1 ?' 642 call getin ("mugaz",mugaz)642 call getin_p("mugaz",mugaz) 643 643 IF (mugaz.eq.-99999.) THEN 644 644 PRINT *, "mugaz must be set if force_cpp = T" … … 649 649 cpp = -99999. 650 650 PRINT *,'SPECIFIC HEAT CAPACITY in J K-1 kg-1 ?' 651 call getin ("cpp",cpp)651 call getin_p("cpp",cpp) 652 652 IF (cpp.eq.-99999.) THEN 653 653 PRINT *, "cpp must be set if force_cpp = T" … … 711 711 ENDDO 712 712 713 !$OMP MASTER 713 714 pi=2.*asin(1.) ! NB: pi is a common in comcstfi.h 715 !$OMP END MASTER 716 !$OMP BARRIER 714 717 715 718 ! allocate "comsoil_h" arrays
Note: See TracChangeset
for help on using the changeset viewer.