Changeset 2997 for trunk


Ignore:
Timestamp:
Jul 18, 2023, 10:05:35 AM (17 months ago)
Author:
emillour
Message:

Mars PCM:
Some adaptations to enable running the 1D model with XIOS.
Note that this requires compiling with "-io xios -parallel mpi"
but the model should then be run using a single core, i.e. without mpirun
EM

Location:
trunk/LMDZ.MARS
Files:
2 added
3 edited

Legend:

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

    r2992 r2997  
    40974097Update reference field_def_physics_mars.xml to take into account recently
    40984098added outputs in improvedclouds.
     4099
     4100== 18/07/2023 == EM
     4101Some adaptations to enable running the 1D model with XIOS.
     4102Note that this requires compiling with "-io xios -parallel mpi"
     4103but the model should then be run using a single core, i.e. without mpirun
     4104
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F

    r2991 r2997  
    4242      use iostart, only: open_startphy,get_var, close_startphy
    4343      use write_output_mod, only: write_output
     44#ifdef CPP_XIOS
     45      use mod_const_mpi, only: init_const_mpi
     46      use parallel_lmdz, only: init_parallel
     47#endif
    4448      IMPLICIT NONE
    4549
     
    169173c INITIALISATION
    170174c=======================================================================
     175#ifdef CPP_XIOS
     176      CALL init_const_mpi
     177      CALL init_parallel
     178#endif
     179
    171180! initialize "serial/parallel" related stuff
    172181!      CALL init_phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
  • trunk/LMDZ.MARS/libf/phymars/wstats_mod.F90

    r2616 r2997  
    174174  if (is_mpi_root) then
    175175    call Grid1Dto2D_glo(px3_glop,px3_glo)
     176    if (klon_glo>1) then ! general case (unless in 1D)
    176177    ! copy dx3_glo() to dx3(:) and add redundant longitude
    177178    dx3(1:nbp_lon,:,:)=px3_glo(1:nbp_lon,:,:)
    178179    dx3(nbp_lon+1,:,:)=dx3(1,:,:)
     180    endif
    179181  endif
    180182!$OMP END MASTER
     
    185187  call Gather(px2,px2_glop)
    186188!$OMP MASTER
    187           if (is_mpi_root) then
    188             call Grid1Dto2D_glo(px2_glop,px2_glo)
    189             ! copy px2_glo() to dx2(:) and add redundant longitude
    190             dx2(1:nbp_lon,:)=px2_glo(1:nbp_lon,:)
    191             dx2(nbp_lon+1,:)=dx2(1,:)
    192           endif
     189  if (is_mpi_root) then
     190    call Grid1Dto2D_glo(px2_glop,px2_glo)
     191    if (klon_glo>1) then ! general case (unless in 1D)
     192      ! copy px2_glo() to dx2(:) and add redundant longitude
     193      dx2(1:nbp_lon,:)=px2_glo(1:nbp_lon,:)
     194      dx2(nbp_lon+1,:)=dx2(1,:)
     195    endif
     196  endif
    193197!$OMP END MASTER
    194198!$OMP BARRIER
Note: See TracChangeset for help on using the changeset viewer.