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/scripshape.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/scripshape.F90

    r2448 r13025  
    2424      REAL(KIND=8), ALLOCATABLE :: src1(:,:),dst1(:,:),wgt1(:,:) 
    2525      LOGICAL  :: around, verbose 
    26 #if defined ARGC 
    27       INTEGER(KIND=4) :: iargc 
    28       EXTERNAL :: iargc 
    29 #endif 
    3026 
    3127      CHARACTER(LEN=256) :: interp_file, output_file, name_file 
     
    4541!     ew_wrap     = 2 
    4642! 
    47 #if defined ARGC 
    48       IF (iargc() == 1) THEN 
    49         CALL getarg(1, name_file) 
    50       ELSE 
    51         WRITE(*,*) 'Usage: scripshape namelist_file' 
    52         STOP 
    53       ENDIF 
    54 #else 
    55       WRITE(6,*) 'enter name of namelist file' 
    56       READ(5,*) name_file 
    57 #endif 
     43 
     44  if (COMMAND_ARGUMENT_COUNT() == 1) then 
     45    CALL GET_COMMAND_ARGUMENT(1, name_file) 
     46  else 
     47  write(6,*) 'enter name of namelist file' 
     48  read(5,*) name_file 
     49  endif 
     50 
    5851      interp_file = 'none' 
    5952      output_file = 'none' 
Note: See TracChangeset for help on using the changeset viewer.