Changeset 3577 for trunk/LMDZ.PLUTO/libf
- Timestamp:
- Jan 15, 2025, 11:04:37 AM (5 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/testconservmass.F90
r3412 r3577 4 4 use comcstfi_mod, only: g 5 5 use geometry_mod, only: cell_area 6 USE comgeomfi_h, only: totarea 6 USE comgeomfi_h, only: totarea,totarea_planet 7 7 implicit none 8 8 … … 49 49 pstot=0.0 50 50 51 do ig = 2, ngrid-151 do ig = 1, ngrid 52 52 53 53 ! mass atm kg/m2 … … 62 62 63 63 enddo 64 atmmasstot= atmmasstot + ps(1)/g*cell_area(1)*iim65 atmmasstot= atmmasstot + ps(ngrid)/g*cell_area(ngrid)*iim66 67 surfmasstot= surfmasstot + surfmass(1)*cell_area(1)*iim68 surfmasstot= surfmasstot + surfmass(ngrid)*cell_area(ngrid)*iim69 70 pstot= pstot + ps(1)*cell_area(1)*iim71 pstot= pstot + ps(ngrid)*cell_area(ngrid)*iim72 64 73 atmmasstot= atmmasstot/ (totarea+(iim-1)*(cell_area(1)+cell_area(ngrid)))74 pstot= pstot/ (totarea+(iim-1)*(cell_area(1)+cell_area(ngrid)))75 surfmasstot = surfmasstot/ (totarea+(iim-1)*(cell_area(1)+cell_area(ngrid)))65 atmmasstot= atmmasstot/totarea_planet 66 pstot= pstot/totarea_planet 67 surfmasstot = surfmasstot/totarea_planet 76 68 77 69 totmass=surfmasstot+atmmasstot
Note: See TracChangeset
for help on using the changeset viewer.