Changeset 4059 for trunk/LMDZ.MARS/libf
- Timestamp:
- Feb 10, 2026, 10:18:01 AM (2 weeks ago)
- Location:
- trunk/LMDZ.MARS/libf/phymars/dyn1d
- Files:
-
- 3 edited
-
init_testphys1d_mod.F90 (modified) (1 diff)
-
testphys1d.F90 (modified) (3 diffs)
-
writerestart1D_mod.F90 (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/dyn1d/init_testphys1d_mod.F90
r4043 r4059 538 538 else 539 539 do iq = 1,nq 540 read(3,*,iostat = ierr) header, (q surf(1,iq,j), j = 1,size(qsurf,3)), (q(1,ilayer,iq), ilayer = 1,nlayer)540 read(3,*,iostat = ierr) header, (q(1,ilayer,iq), ilayer = 1,nlayer) 541 541 if (ierr /= 0) error stop 'Not enough atmospheric layers defined in the file "'//trim(start1Dname)//'" for the tracer "'//trim(header)//'"!' 542 542 if (trim(tname(iq)) /= trim(header)) then -
trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90
r4043 r4059 129 129 if (startfiles_1D) then 130 130 inquire(file = 'start1D.txt',exist = therestart1D) 131 if ( startfiles_1D .and..not. therestart1D) then131 if (.not. therestart1D) then 132 132 write(*,*) 'There is no "start1D.txt" file!' 133 133 write(*,*) 'Initialization is done with default values.' … … 139 139 endif 140 140 endif 141 if (therestart1D .and. .not. therestartfi) error stop 'There is a "start1D.txt" but no "startfi.nc". There might be problems for the initialization (for example ''qsurf'')!' 141 142 142 143 call init_testphys1d('start1D.txt','startfi.nc',therestart1D,therestartfi,ngrid,nlayer,odpref,nq,q, & … … 261 262 262 263 ! Writing the "restart1D.txt" file for the next run 263 if (startfiles_1D) call writerestart1D('restart1D.txt',psurf,pa,preff,tsurf(1,:),nlayer,size(tsurf,2),temp,u,v,nq,noms,q surf(1,:,:),q)264 if (startfiles_1D) call writerestart1D('restart1D.txt',psurf,pa,preff,tsurf(1,:),nlayer,size(tsurf,2),temp,u,v,nq,noms,q) 264 265 265 266 write(*,*) "testphys1d: everything is cool!" -
trunk/LMDZ.MARS/libf/phymars/dyn1d/writerestart1D_mod.F90
r4043 r4059 5 5 contains 6 6 7 SUBROUTINE writerestart1D(filename,psurf,pa,preff,tsurf,nlayer,nslope,temp,u,v,nq,qnames,q surf,q)7 SUBROUTINE writerestart1D(filename,psurf,pa,preff,tsurf,nlayer,nslope,temp,u,v,nq,qnames,q) 8 8 9 9 implicit none … … 16 16 real, dimension(nlayer), intent(in) :: temp, u, v 17 17 real, dimension(nlayer,nq), intent(in) :: q 18 real, dimension(nq,nslope), intent(in) :: qsurf19 18 character(*), dimension(nq), intent(in) :: qnames 20 19 … … 26 25 write(1,*) 'ps', psurf, pa, preff 27 26 do i = 1,nq 28 write(1,*) qnames(i), (q surf(i,j), j = 1,nslope), (q(il,i), il = 1,nlayer)27 write(1,*) qnames(i), (q(il,i), il = 1,nlayer) 29 28 enddo 30 29 write(1,*) 'u', (u(il), il = 1,nlayer)
Note: See TracChangeset
for help on using the changeset viewer.
