Ignore:
Timestamp:
07/23/14 18:14:17 (10 years ago)
Author:
ymipsl
Message:

Adding xios output functionnalities

YM

Location:
codes/icosagcm/branches/SATURN_DYNAMICO/ICOSAGCM
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/branches/SATURN_DYNAMICO/ICOSAGCM/arch/arch-X64_CURIE.fcm

    r221 r254  
    1212%MPI_FFLAGS 
    1313%OMP_FFLAGS          -openmp -openmp-threadprivate compat 
    14 %BASE_LD             -i4 -r8 -auto $MKL_LIBS -L../../LMDZ.COMMON/lib -llmdz 
     14%BASE_LD             -i4 -r8 -auto $MKL_LIBS 
    1515%MPI_LD 
    1616%OMP_LD              -openmp 
  • codes/icosagcm/branches/SATURN_DYNAMICO/ICOSAGCM/arch/arch-X64_CURIE.path

    r221 r254  
    1111HDF5_LIB="-lhdf5_hl -lhdf5 -lhdf5 -lz -lcurl" 
    1212 
    13 XIOS_INCDIR="-I$WORKDIR/XIOS_COMMIT_V1.7/inc" 
    14 XIOS_LIBDIR="-L$WORKDIR/XIOS_COMMIT_V1.7/lib" 
     13XIOS_INCDIR="-I../../XIOS/inc" 
     14XIOS_LIBDIR="-L../../XIOS/lib" 
    1515XIOS_LIB="-lxios -lstdc++" 
  • codes/icosagcm/branches/SATURN_DYNAMICO/ICOSAGCM/bld.cfg

    r220 r254  
    2525bld::tool::fc        %COMPILER 
    2626bld::tool::ld        %LINK 
    27 bld::tool::ldflags   %LD_FLAGS %LIB  
     27bld::tool::ldflags   %LD_FLAGS  -L../../LMDZ.COMMON/lib -llmdz %LIB  
    2828bld::tool::fflags    %FFLAGS  
    2929bld::tool::fppkeys   %CPP_KEY %FPP_DEF 
  • codes/icosagcm/branches/SATURN_DYNAMICO/ICOSAGCM/compile_curie

    r220 r254  
    1 ./make_icosa -debug -parallel mpi_omp -arch X64_CURIE -job 8   
     1./make_icosa -prod -parallel mpi_omp -with_xios -arch X64_CURIE -job 8   
    22#./make_icosa -prod -arch X64_CURIE  -job 8  
    33 
  • codes/icosagcm/branches/SATURN_DYNAMICO/ICOSAGCM/src/physics_lmdz_generic.f90

    r246 r254  
    4343  USE mpipara 
    4444  USE disvert_mod 
     45  USE xios_mod 
    4546   
    4647  IMPLICIT NONE 
     
    5152  REAL(rstd),ALLOCATABLE :: lonfi(:) 
    5253  REAL(rstd),ALLOCATABLE :: airefi(:) 
     54  REAL(rstd),ALLOCATABLE :: bounds_latfi(:,:) 
     55  REAL(rstd),ALLOCATABLE :: bounds_lonfi(:,:) 
    5356 
    5457    start_day=0 
     
    9497    ALLOCATE(lonfi(nbp_phys)) 
    9598    ALLOCATE(airefi(nbp_phys)) 
     99    ALLOCATE(bounds_latfi(nbp_phys,6)) 
     100    ALLOCATE(bounds_lonfi(nbp_phys,6)) 
    96101     
    97102    pos=0 
     
    104109          pos=pos+1 
    105110          CALL xyz2lonlat(xyz_i(ij,:),lonfi(pos),latfi(pos)) 
     111          CALL xyz2lonlat(xyz_v(ij+z_rup,:), bounds_lonfi(pos,1), bounds_latfi(pos,1)) 
     112          CALL xyz2lonlat(xyz_v(ij+z_up,:), bounds_lonfi(pos,2), bounds_latfi(pos,2)) 
     113          CALL xyz2lonlat(xyz_v(ij+z_lup,:), bounds_lonfi(pos,3), bounds_latfi(pos,3)) 
     114          CALL xyz2lonlat(xyz_v(ij+z_ldown,:), bounds_lonfi(pos,4), bounds_latfi(pos,4)) 
     115          CALL xyz2lonlat(xyz_v(ij+z_down,:), bounds_lonfi(pos,5), bounds_latfi(pos,5)) 
     116          CALL xyz2lonlat(xyz_v(ij+z_rdown,:), bounds_lonfi(pos,6), bounds_latfi(pos,6)) 
    106117          airefi(pos)=Ai(ij)   
    107118        ENDDO 
     
    112123    CALL initialize_unstructured_physics(nbp_phys,llm, comm_icosa, mpi_size,distrib,            & 
    113124                                         day_length,start_day,itau_physics*dt,                  & 
    114                                          latfi,lonfi,airefi,radius,g, gas_constant/mu, cpp,     & 
     125                                         6,latfi,lonfi,airefi,bounds_lonfi,bounds_latfi,         & 
     126                                         radius,g, gas_constant/mu, cpp,                        & 
    115127                                         preff, ap, bp)                                          
    116128     
    117      
     129    CALL xios_set_context     
    118130     
    119131!    CALL init_phys_lmdz(128,97,llm, comm_icosa, mpi_size, distrib) 
     
    135147  USE transfert_mod 
    136148  USE mpipara 
     149  USE xios_mod 
    137150  IMPLICIT NONE 
    138151    INTEGER,INTENT(IN)    :: it 
     
    305318 
    306319!$OMP BARRIER 
     320    CALL xios_set_context     
    307321      
    308322  CONTAINS 
  • codes/icosagcm/branches/SATURN_DYNAMICO/ICOSAGCM/src/xios_mod.F90

    r221 r254  
    420420 
    421421 END SUBROUTINE xios_write_field_finalize 
    422     
     422 
     423 SUBROUTINE xios_set_context 
     424 IMPLICIT NONE    
     425  TYPE(xios_context) :: ctx_hdl 
     426 
     427!$OMP MASTER  
     428   CALL xios_get_handle("icosagcm",ctx_hdl) 
     429   CALL xios_set_current_context(ctx_hdl) 
     430!$OMP END MASTER 
     431 
     432  END SUBROUTINE xios_set_context 
    423433#else 
    424434   
     
    447457  SUBROUTINE xios_init_write_field 
    448458  END SUBROUTINE xios_init_write_field   
     459   
     460  SUBROUTINE xios_set_context 
     461  END SUBROUTINE xios_set_context 
     462   
     463 
    449464#endif   
    450465   
Note: See TracChangeset for help on using the changeset viewer.