Ignore:
Timestamp:
Jan 14, 2025, 4:05:38 PM (2 days ago)
Author:
jbclement
Message:

COMMON:
Follow-up of r3574:

  • Small corrections to make it work with Git;
  • Addition of the functionality with the programs 'Generic newstart' and 'Generic start2archive';
  • Improvements of the visualization format;
  • Diplaying version control information of every sub-folder in the "trunk" instead of only the "trunk" (who can do more can do less).

JBC

Location:
trunk/LMDZ.GENERIC/libf/dynphy_lonlat/phystd
Files:
2 edited

Legend:

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

    r3423 r3576  
    4949      use geometry_mod, only: longitude,  ! longitudes (rad)
    5050     &                         latitude,  ! latitudes (rad)                       
    51      &                         cell_area ! physics grid area (m2)                       
     51     &                         cell_area ! physics grid area (m2)
     52      use version_info_mod, only: print_version_info
     53                       
    5254      implicit none
    5355
     
    189191      real fact2
    190192
     193
     194      if (command_argument_count() > 0) then ! Get the number of command-line arguments
     195          call get_command_argument(1,txt) ! Read the argument given to the program
     196          select case (trim(adjustl(txt)))
     197              case('version')
     198                  call print_version_info()
     199                  stop
     200              case default
     201                  error stop 'The argument given to the program is '
     202     &//'unknown!'
     203          end select
     204      endif
    191205
    192206c sortie visu pour les champs dynamiques
  • trunk/LMDZ.GENERIC/libf/dynphy_lonlat/phystd/start2archive.F

    r3423 r3576  
    3939     &                          east_gwstress, west_gwstress
    4040      use exner_hyb_m, only: exner_hyb
     41      use version_info_mod, only: print_version_info
     42
    4143      implicit none
    4244
     
    146148c   Initialisations
    147149c-----------------------------------------------------------------------
     150      if (command_argument_count() > 0) then ! Get the number of command-line arguments
     151          call get_command_argument(1,txt) ! Read the argument given to the program
     152          select case (trim(adjustl(txt)))
     153              case('version')
     154                  call print_version_info()
     155                  stop
     156              case default
     157                  error stop 'The argument given to the program is '
     158     &//'unknown!'
     159          end select
     160      endif
    148161
    149162      CALL defrun_new(99, .TRUE. )
Note: See TracChangeset for help on using the changeset viewer.