Ignore:
Timestamp:
Nov 10, 2011, 3:08:51 PM (13 years ago)
Author:
emillour
Message:

Generic GCM: Upgrade: The location of the 'datagcm' directory can now be given in the callphys.def file ( datadir = /absolute/path/to/datagcm ). Changed "datafile.h" into a F90 module "datafile_mod.F90" and spread this change to all routines that used to use "datafile.h".
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/dyn3d/newstart.F

    r367 r374  
    18361836!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    18371837      subroutine load_MONS_data(MONS_Hdn,MONS_d21)
     1838      use datafile_mod, only: datadir
    18381839      implicit none
    18391840      ! routine to load Benedicte Diez MONS dataset, fill in date in southern
     
    18411842#include"dimensions.h"
    18421843#include"paramet.h"
    1843 #include"datafile.h"
    18441844#include"comgeom.h"
    18451845      ! arguments:
     
    18711871
    18721872      ! Open MONS datafile:
    1873       open(42,file=trim(datafile)//"/"//trim(filename),
     1873      open(42,file=trim(datadir)//"/"//trim(filename),
    18741874     &     status="old",iostat=ierr)
    18751875      if (ierr/=0) then
    18761876        write(*,*) "Error in load_MONS_data:"
    18771877        write(*,*) "Failed opening file ",
    1878      &             trim(datafile)//"/"//trim(filename)
    1879         write(*,*)'1) You can change the path to the file in '
    1880         write(*,*)'   file phymars/datafile.h'
    1881         write(*,*)'2) If necessary ',trim(filename),
     1878     &             trim(datadir)//"/"//trim(filename)
     1879        write(*,*)'Check that your path to datagcm:',trim(datadir)
     1880        write(*,*)' is correct. You can change it in callphys.def with:'
     1881        write(*,*)' datadir = /absolute/path/to/datagcm'
     1882        write(*,*)'If necessary ',trim(filename),
    18821883     &                 ' (and other datafiles)'
    18831884        write(*,*)'   can be obtained online at:'
Note: See TracChangeset for help on using the changeset viewer.