Ignore:
Timestamp:
Apr 12, 2018, 8:35:48 AM (7 years ago)
Author:
emillour
Message:

Mars GCM:
Code cleanup:

  • remove "comorbit.h" since it is no longer used.
  • turn "datafile.h" into module datafile_mod.F90 (and rename variable "datafile" as "datadir" since it stores the path to the datafile directory).

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/improvedCO2clouds.F

    r1913 r1918  
    1313     &                      rho_ice_co2
    1414      use conc_mod, only: mmean
     15      use datafile_mod, only: datadir
    1516
    1617      implicit none
     
    5556      include "callkeys.h"
    5657      include "microphys.h"
    57       include "datafile.h"
    5858c------------------------------------------------------------------
    5959c     Arguments:
     
    247247           ! Initialisation of the flux: it is constant and is it saved
    248248           !We must interpolate the table to the GCM pressures
    249            INQUIRE(FILE=datafile(1:LEN_TRIM(datafile))//
     249           INQUIRE(FILE=TRIM(datadir)//
    250250     &       '/Meteo_flux_Plane.dat', EXIST=file_ok)
    251251           IF (.not. file_ok) THEN
    252252              write(*,*) 'file Meteo_flux_Plane.dat should be in '
    253      &             ,datafile
     253     &             ,trim(datadir)
    254254              STOP
    255255           endif
    256256!used Variables
    257 !           open(newunit=uMeteor,file=trim(datafile)//
    258            open(unit=uMeteor,file=trim(datafile)//
     257!           open(newunit=uMeteor,file=trim(datadir)//
     258           open(unit=uMeteor,file=trim(datadir)//
    259259     &          '/Meteo_flux_Plane.dat'
    260260     &          ,FORM='formatted')
Note: See TracChangeset for help on using the changeset viewer.