New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 13025 for utils/tools_dev_r12970_AGRIF_CMEMS/WEIGHTS/src/scripgrid.F90 – NEMO

Ignore:
Timestamp:
2020-06-03T16:27:48+02:00 (4 years ago)
Author:
rblod
Message:

First version of new nesting tools merged with domaincfg, see ticket #2129

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/tools_dev_r12970_AGRIF_CMEMS/WEIGHTS/src/scripgrid.F90

    r2352 r13025  
    77  CHARACTER(char_len) :: infile 
    88 
    9 #if defined ARGC 
    10   INTEGER :: IARGC 
    11   EXTERNAL IARGC 
    12  
    13   if (IARGC() == 1) then 
    14     CALL GETARG(1, infile) 
    15     CALL convert( infile ) 
    16   ELSE 
    17     write(6,*) 'need to supply a namelist file' 
    18   ENDIF 
    19 #else 
     9  if (COMMAND_ARGUMENT_COUNT() == 1) then 
     10    CALL GET_COMMAND_ARGUMENT(1, infile) 
     11  else 
    2012  write(6,*) 'enter name of namelist file' 
    2113  read(5,*) infile 
     14  endif 
    2215 
    2316  CALL convert( infile ) 
    24 #endif 
    2517 
    2618END PROGRAM scripgrid 
Note: See TracChangeset for help on using the changeset viewer.