Changeset 3213 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Feb 12, 2024, 3:05:15 PM (9 months ago)
Author:
jbclement
Message:

Mars PCM:
Correction of a bug in "writediagsoil.F90": the case of using the 1D model with parallelization was not anticipated so that the "diagsoil.nc" file was filled with meaningless data.
JBC

Location:
trunk/LMDZ.MARS
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3211 r3213  
    44874487- Update the computation of qsat for frost at high temperatures; following
    44884488what is done in the Generic PCM
     4489
     4490== 12/02/2024 == JBC
     4491Correction of a bug in "writediagsoil.F90": the case of using the 1D model with parallelization was not anticipated so that the "diagsoil.nc" file was filled with meaningless data.
  • trunk/LMDZ.MARS/deftank/launch_1Dchained.sh

    r3209 r3213  
    7474    ./$exePCM > out_runPCM${iPCM} 2>&1
    7575    if [ ! -f "restartfi.nc" ]; then # Check if run ended abnormally
    76         echo "Error: the run PCM $iPCM has crashed!"
     76        echo "Error: the run PCM $iPCM crashed!"
    7777        exit 1
    7878    fi
     
    104104
    105105date
    106 echo "The launching script has terminated."
     106echo "The launching script ended."
  • trunk/LMDZ.MARS/deftank/launch_orb_1Dchained.sh

    r3209 r3213  
    159159    ./$exePCM > out_runPCM${iPCM} 2>&1
    160160    if [ ! -f "restartfi.nc" ]; then # Check if run ended abnormally
    161         echo "Error: the run PCM $iPCM has crashed!"
     161        echo "Error: the run PCM $iPCM crashed!"
    162162        exit 1
    163163    fi
     
    189189
    190190date
    191 echo "The launching script has terminated."
     191echo "The launching script ended."
  • trunk/LMDZ.MARS/libf/phymars/writediagsoil.F90

    r2916 r3213  
    206206if (dimpx.eq.3) then ! Case of a 3D variable
    207207  ! A. Recast data along 'dynamics' grid
     208  if (klon_glo>1) then ! General case
    208209#ifdef CPP_PARA
    209210  ! gather field on a "global" (without redundant longitude) array
     
    219220!$OMP BARRIER
    220221#else
    221   if (klon_glo>1) then ! General case
    222222   do l=1,nsoilmx
    223223    ! handle the poles
     
    235235    enddo
    236236   enddo
     237#endif
    237238  else ! 1D model case
    238239   data3_1d(1,1:nsoilmx)=px(1,1:nsoilmx)
    239240  endif
    240 #endif
    241241 
    242242  ! B. Write (append) the variable to the NetCDF file
     
    292292
    293293  ! A. Recast data along 'dynamics' grid
     294  if (klon_glo>1) then ! General case
    294295#ifdef CPP_PARA
    295296  ! gather field on a "global" (without redundant longitude) array
     
    306307!$OMP BARRIER
    307308#else
    308   if (klon_glo>1) then ! general case
    309309    ! handle the poles
    310310    do i=1,nbp_lon+1
     
    320320      data2(nbp_lon+1,j)=data2(1,j) ! extra (modulo) longitude
    321321    enddo
     322#endif
    322323  else ! 1D model case
    323324    data2_1d=px(1,1)
    324325  endif
    325 #endif
    326326
    327327  ! B. Write (append) the variable to the NetCDF file
Note: See TracChangeset for help on using the changeset viewer.