Changeset 2996


Ignore:
Timestamp:
Jul 18, 2023, 9:57:21 AM (17 months ago)
Author:
emillour
Message:

Common dynamics:
Adapt script and interface for the possibility of running 1D model with MPI
(will only be usefull for running 1D models with XIOS).
In anticipation of next commit also remove the link to dyn3d/mod_const_mpi.F90 in the Mars dyn1d directory.
EM

Location:
trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dynphy_lonlat/mod_interface_dyn_phys.F90

    r1572 r2996  
    2626      index_j(k)=1
    2727      k=2
     28      ! handle very specific case of 1D "parallel" setup
     29      if (klon_mpi==1) k=1
    2830    ELSE
    2931      DO i=ii_begin,iim
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r2985 r2996  
    610610then
    611611## Sanity check: 1D models should be used in serial
    612   if [[ $parallel != "none" ]]
    613   then
     612## unless compiled with xios and then it should be in mpi only
     613  if [[ $io == xios ]]
     614  then
     615   echo "OK io xios"
     616   if [[ $parallel != "mpi" ]]
     617   then
     618    echo "Error: a 1D model compiled with xios should also be compiled with "
     619    echo "       -parallel mpi option!"
     620    exit
     621   fi
     622  else
     623  # no xios, check that it is in serial only
     624   if [[ $parallel != "none" ]]
     625   then
    614626    echo "Error: a 1D model should not be compiled with "
    615627    echo "       -parallel [mpi|omp|mpi_omp] option!"
    616628    exit
    617   fi
     629   fi
     630  fi # of if [[ $io == "xios" ]]
    618631  CPP_KEY="$CPP_KEY CPP_1D"
    619632##in 1D, add dyn3d to include path (because main prog is in physics)
     
    682695then
    683696  SUFF_NAME=${SUFF_NAME}_para
    684   DYN=dyn${dimc}d${paramem}
     697  if (( $dimension == 1 ))
     698  then
     699    # dynamics-related routines in"dyn1d" subdirectory of phy${physique}
     700    DYN=phy${physique}/dyn1d
     701  else
     702    DYN=dyn${dimc}d${paramem}
     703  fi
    685704  if [[ "$paramem" == "mem" ]]
    686705  then
Note: See TracChangeset for help on using the changeset viewer.