Changeset 2567 for trunk/LMDZ.MARS/util/xvik
- Timestamp:
- Oct 5, 2021, 8:34:09 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/util/xvik/fit_Iceinertia_MONSicedepth.F
r2338 r2567 132 132 133 133 maxiceidiff = 3000 ! maximum allowed difference between N and S best fit ice thermal inertia 134 deltaicei= 20 134 deltaicei= 20 ! step in ice thermal inertia 135 135 maxiceddiff = 30.e-4 ! maximum allowed difference between N and S best fit ice depth 136 136 deltaiced= 0.5e-4 ! step in ice depth coefficient … … 332 332 read(13,*) solgcm(n), patm(n,3), pcapn(n,3),pcaps(n,3) 333 333 read(14,*) solgcm(n), patm(n,4), pcapn(n,4),pcaps(n,4) 334 334 335 335 elseif (time_unit == 2) then 336 336 read(21,*) lsgcm(n), pvl_gcm(n,1) … … 358 358 read(13,*) solgcm(n), lsgcm(n), patm(n,3), pcapn(n,3),pcaps(n,3) 359 359 read(14,*) solgcm(n), lsgcm(n), patm(n,4), pcapn(n,4),pcaps(n,4) 360 361 362 360 361 else 362 write(*,*) 'Wrong integer for xvik files format :', 363 363 &' must be 1, 2 or 3' 364 364 stop 365 365 366 366 endif 367 367 368 368 c Checking total CO2 inventory for all runs : 369 369 do i=1,4 … … 381 381 end do 382 382 383 384 385 386 387 388 389 390 391 392 383 close(11) 384 close(12) 385 close(13) 386 close(14) 387 close(21) 388 close(22) 389 close(23) 390 close(24) 391 392 393 393 c Smoothing simulated GCM Viking 1 pressure curves 394 394 c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … … 493 493 c to plot COST(DN,DS) (plot_test=1), loops must be in this order : DN->DS->IN->IS 494 494 write(*,*)' DN DS cost IN IS Ps' 495 icedn=icedmin ! initialization 495 icedn=icedmin ! initialization 496 496 do while (icedn.le.icedmax) ! loop on northern ice depth coefficient 497 497 ! albn=albmin ! initialization … … 510 510 cost =0. !initialization 511 511 do n=1,nsol 512 512 !write(*,*) n 513 513 ! Pressure corresponding to Northern cap 514 514 pcapn_new=pcapn_sm(n,refrun)+ … … 527 527 ! and observed pressures at VL1 site 528 528 cost= cost+ ( pvl_obs(n) - pvl1)**2 529 529 530 530 end do ! of do n=1,nsol 531 531 ! store parameters which lead to minimum cost … … 539 539 icedsfit=iceds 540 540 end if 541 541 542 542 if(cost.lt.cost4plot) then 543 543 c RMS, best pressure and best albedos for these icedsivities value … … 575 575 c to plot COST(IN,IS) (plot_test=2), loops must be in this order : IN->IS->DN->DS 576 576 write(*,*)' DN DS cost IN IS Ps' 577 write(33,*)' DN DS cost IN IS 578 &Ps' 579 icein=iceimin ! initialization 577 write(33,*)' DN DS cost IN IS Ps' 578 icein=iceimin ! initialization 580 579 do while (icein.le.iceimax) ! loop on northern ice depth coefficient 581 580 ! albn=albmin ! initialization … … 594 593 cost =0. !initialization 595 594 do n=1,nsol 596 595 !write(*,*) n 597 596 ! Pressure corresponding to Northern cap 598 597 pcapn_new=pcapn_sm(n,refrun)+ … … 611 610 ! and observed pressures at VL1 site 612 611 cost= cost+ ( pvl_obs(n) - pvl1)**2 613 612 614 613 end do ! of do n=1,nsol 615 614 ! store parameters which lead to minimum cost … … 623 622 icedsfit=iceds 624 623 end if 625 624 626 625 if(cost.lt.cost4plot) then 627 626 c RMS, best pressure and best albedos for these icedsivities value … … 683 682 & + (fonc2s(icedsfit) -fonc2s(icedgcm_ref)) * dpdes(n) 684 683 pcaps_new= max(pcaps_new,0.) 685 684 686 685 call sol2ls(sol(n),solconv) 687 686 … … 722 721 723 722 724 if (nbig.lt.3*nmax) stop 'Must increase nbig in runave' 723 if (nbig.lt.3*nmax) then 724 write(*,*) 'Must increase nbig in runave' 725 stop 726 endif 725 727 726 728 c Reindexation des donnees
Note: See TracChangeset
for help on using the changeset viewer.