Ignore:
Timestamp:
Jan 14, 2026, 8:30:16 PM (11 days ago)
Author:
aslmd
Message:

MESOSCALE: use precompiling flags to hide instructions related to parallel computations (we consider physics as being like a 1D model without any attached dynamical core when we compile).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/albedocaps.F90

    r3901 r4008  
    1414use surfdat_h, only: TESicealbedo, TESice_Ncoef, TESice_Scoef, &
    1515                     emisice, emissiv, albedice, albedodat, albedo_perennialco2
     16#ifndef MESOSCALE
    1617USE mod_phys_lmdz_transfert_para, ONLY: bcast
    1718USE mod_phys_lmdz_para, ONLY: is_master
     19#endif
    1820USE paleoclimate_mod, ONLY: paleoclimate
    1921
     
    134136use netcdf, only: nf90_open, NF90_NOWRITE, NF90_NOERR, &
    135137                  nf90_strerror, nf90_inq_varid, nf90_get_var, nf90_close
     138#ifndef MESOSCALE
    136139USE mod_phys_lmdz_para, ONLY: is_master
    137140USE mod_phys_lmdz_transfert_para, ONLY: bcast
     141#endif
    138142
    139143implicit none
     
    145149real:: pi,radeg ! to convert radians to degrees
    146150character(len=20),parameter :: modname="TES_icecap_albedo"
     151
    147152
    148153! TES datasets: (hard coded fixed length/sizes; for now)
     
    171176
    172177! 0. Preliminary stuff
    173 
     178#ifndef MESOSCALE
    174179if(is_master) then
    175 
     180#endif
    176181! Load TES albedoes for Northern Hemisphere
    177182  ierr=nf90_open(trim(datadir)//"/npsc_albedo.nc",NF90_NOWRITE,nid)
     
    244249    endif
    245250  endif
    246 
    247251  ierr=nf90_close(nid)
    248252
     
    298302  zls_old=-999 ! dummy initialization
    299303
     304#ifndef MESOSCALE
    300305endif !is_master
    301306
     
    309314    call bcast(zls_old)
    310315    call bcast(radeg)
     316#endif
    311317
    312318end subroutine read_TES_icecap_albedo
Note: See TracChangeset for help on using the changeset viewer.