Changeset 2577 for trunk/LMDZ.MARS/util/concatnc.F90
- Timestamp:
- Oct 27, 2021, 11:41:34 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.