Changeset 2577
- Timestamp:
- Oct 27, 2021, 11:41:34 AM (3 years ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/README
r2575 r2577 3500 3500 == 26/10/2021 == CM 3501 3501 Delete nucleaco2.F (old file), the good one is nucleaco2.F90 (better modular) 3502 3503 == 27/10/2021 == JL+EM 3504 Fixes in the utilities for the picky gfortran 10+ compiler -
trunk/LMDZ.MARS/util/concatnc.F90
r2567 r2577 582 582 if (rep.eq.1) write(*,*) "Sol", int(output_time) 583 583 584 ierr= NF_PUT_VARA_REAL(nout,timevarout,(/k/),(/1/), output_time)584 ierr= NF_PUT_VARA_REAL(nout,timevarout,(/k/),(/1/),(/output_time/)) 585 585 end do 586 586 ! use the last output_time value to update memotime … … 694 694 ierr = NF_GET_VAR_REAL(nid,varid,var3d) 695 695 ierr= NF_PUT_VARA_REAL(nout,varidout,corner,edges,var3d) 696 miss=NF_GET_ATT_REAL(nid,varid,"missing_value", missing)696 miss=NF_GET_ATT_REAL(nid,varid,"missing_value",[missing]) 697 697 miss=NF_GET_ATT_REAL(nid,varid,"valid_range",valid_range) 698 698 … … 865 865 ierr = NF_REDEF (nout) 866 866 867 ierr = NF_DEF_VAR (nout,"altitude",NF_FLOAT,1, altdimout,nvarid)867 ierr = NF_DEF_VAR (nout,"altitude",NF_FLOAT,1,[altdimout],nvarid) 868 868 869 869 ierr = NF_PUT_ATT_TEXT (nout,nvarid,'long_name',len_trim(adjustl(altlong_name)),adjustl(altlong_name)) … … 884 884 ierr = NF_REDEF (nout) 885 885 886 ierr = NF_DEF_VAR (nout,"controle",NF_FLOAT,1, ctldimout,nvarid)886 ierr = NF_DEF_VAR (nout,"controle",NF_FLOAT,1,[ctldimout],nvarid) 887 887 888 888 ierr = NF_PUT_ATT_TEXT (nout,nvarid,"long_name",18,"Control parameters") … … 1520 1520 1521 1521 ! Write "missing_value" attribute 1522 ierr= NF_PUT_ATT_REAL(nout,nvarid,'missing_value',NF_FLOAT,1, missing)1522 ierr= NF_PUT_ATT_REAL(nout,nvarid,'missing_value',NF_FLOAT,1,[missing]) 1523 1523 1524 1524 if (ierr.NE.NF_NOERR) then -
trunk/LMDZ.MARS/util/localtime.F90
r2567 r2577 655 655 656 656 ierr = NF_GET_VAR_REAL(nid,varid,var3d) 657 miss=NF_GET_ATT_REAL(nid,varid,"missing_value", missing)657 miss=NF_GET_ATT_REAL(nid,varid,"missing_value",[missing]) 658 658 validr=NF_GET_ATT_REAL(nid,varid,"valid_range",valid_range) 659 659 … … 913 913 ierr = NF_REDEF (nout) 914 914 915 ierr = NF_DEF_VAR (nout,"altitude",NF_FLOAT,1, altdimout,nvarid)915 ierr = NF_DEF_VAR (nout,"altitude",NF_FLOAT,1,[altdimout],nvarid) 916 916 917 917 ierr = NF_PUT_ATT_TEXT (nout,nvarid,'long_name',len_trim(adjustl(altlong_name)),adjustl(altlong_name)) … … 937 937 ierr = NF_REDEF (nout) 938 938 939 ierr = NF_DEF_VAR (nout,"controle",NF_FLOAT,1, ctldimout,nvarid)939 ierr = NF_DEF_VAR (nout,"controle",NF_FLOAT,1,[ctldimout],nvarid) 940 940 941 941 ierr = NF_PUT_ATT_TEXT (nout,nvarid,"long_name",18,"Control parameters") … … 1240 1240 if (miss.eq.NF_NOERR) then 1241 1241 ! Write "missing_value" attribute 1242 ierr= NF_PUT_ATT_REAL(nout,nvarid,'missing_value',NF_FLOAT,1, missing)1242 ierr= NF_PUT_ATT_REAL(nout,nvarid,'missing_value',NF_FLOAT,1,[missing]) 1243 1243 1244 1244 if (ierr.NE.NF_NOERR) then -
trunk/LMDZ.MARS/util/lslin.F90
r2567 r2577 504 504 505 505 ierr = NF_GET_VAR_REAL(nid,varid,var3d) 506 miss=NF_GET_ATT_REAL(nid,varid,"missing_value", missing)506 miss=NF_GET_ATT_REAL(nid,varid,"missing_value",[missing]) 507 507 validr=NF_GET_ATT_REAL(nid,varid,"valid_range",valid_range) 508 508 … … 810 810 ierr = NF_REDEF (nout) 811 811 812 ierr = NF_DEF_VAR (nout,"altitude",NF_FLOAT,1, altdimout,nvarid)812 ierr = NF_DEF_VAR (nout,"altitude",NF_FLOAT,1,[altdimout],nvarid) 813 813 814 814 ierr = NF_PUT_ATT_TEXT (nout,nvarid,'long_name',len_trim(adjustl(altlong_name)),adjustl(altlong_name)) … … 834 834 ierr = NF_REDEF (nout) 835 835 836 ierr = NF_DEF_VAR (nout,"controle",NF_FLOAT,1, ctldimout,nvarid)836 ierr = NF_DEF_VAR (nout,"controle",NF_FLOAT,1,[ctldimout],nvarid) 837 837 838 838 ierr = NF_PUT_ATT_TEXT (nout,nvarid,"long_name",18,"Control parameters") -
trunk/LMDZ.MARS/util/solzenangle.F90
r2567 r2577 583 583 584 584 do it=1,nsol 585 ierr= NF_PUT_VARA_REAL(nout,timevarout,(/it/),(/1/), intsol(it)*24.)585 ierr= NF_PUT_VARA_REAL(nout,timevarout,(/it/),(/1/),[intsol(it)*24.]) 586 586 enddo 587 587 else … … 683 683 684 684 ierr = NF_GET_VAR_REAL(nid,varid,var3d) 685 miss=NF_GET_ATT_REAL(nid,varid,"missing_value", missing)685 miss=NF_GET_ATT_REAL(nid,varid,"missing_value",[missing]) 686 686 validr=NF_GET_ATT_REAL(nid,varid,"valid_range",valid_range) 687 687 … … 1032 1032 ierr = NF_REDEF (nout) 1033 1033 1034 ierr = NF_DEF_VAR (nout,"altitude",NF_FLOAT,1, altdimout,nvarid)1034 ierr = NF_DEF_VAR (nout,"altitude",NF_FLOAT,1,[altdimout],nvarid) 1035 1035 1036 1036 ierr = NF_PUT_ATT_TEXT (nout,nvarid,'long_name',len_trim(adjustl(altlong_name)),adjustl(altlong_name)) … … 1056 1056 ierr = NF_REDEF (nout) 1057 1057 1058 ierr = NF_DEF_VAR (nout,"controle",NF_FLOAT,1, ctldimout,nvarid)1058 ierr = NF_DEF_VAR (nout,"controle",NF_FLOAT,1,[ctldimout],nvarid) 1059 1059 1060 1060 ierr = NF_PUT_ATT_TEXT (nout,nvarid,"long_name",18,"Control parameters") … … 1362 1362 ! Write "missing_value" attribute 1363 1363 if (miss.eq.NF_NOERR) then 1364 ierr= NF_PUT_ATT_REAL(nout,nvarid,'missing_value',NF_FLOAT,1, missing)1364 ierr= NF_PUT_ATT_REAL(nout,nvarid,'missing_value',NF_FLOAT,1,[missing]) 1365 1365 1366 1366 if (ierr.NE.NF_NOERR) then
Note: See TracChangeset
for help on using the changeset viewer.