-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move print_model_init to configuration.F90
- Loading branch information
Joe Hamman
committed
Mar 10, 2017
1 parent
b78eab8
commit 8f80e1d
Showing
3 changed files
with
38 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
!>------------------------------------------------ | ||
!! Reads the configuration input file | ||
!! Also looks for commandline arguments to for an config filename | ||
!! Also looks for command line arguments to for an config filename | ||
!! | ||
!! @author | ||
!! Ethan Gutmann ([email protected]) | ||
|
@@ -12,14 +12,14 @@ module config_mod | |
use model_constants | ||
use string, only : str | ||
use io_routines, only : io_newunit | ||
use init_mod, only : print_model_init | ||
|
||
implicit none | ||
private | ||
|
||
logical :: module_debug | ||
public :: read_config | ||
public :: read_files_list, read_data_type, get_options_file ! only need to be public for test_config | ||
public :: print_model_init | ||
contains | ||
|
||
!>------------------------------------------------ | ||
|
@@ -797,4 +797,37 @@ function get_options_file() result(options_file) | |
write(*,*) "Using options file = ", trim(options_file) | ||
end function get_options_file | ||
|
||
!>------------------------------------------------ | ||
!! Prints model configuration info before running | ||
!! | ||
!! Prints a welcome and version string as well. | ||
!!------------------------------------------------ | ||
subroutine print_model_init() | ||
implicit none | ||
|
||
write(*,*) "Generalized Analog Regression Downscaling (GARD)" | ||
write(*,*) "-----------------------------------------------------------" | ||
write(*,*) "GARD Version : "//trim(kVERSION_STRING) | ||
! TODO: Add compile time options | ||
write(*,*) "" | ||
write(*,*) " The Generalized Analog Regression Downscaling (GARD)" | ||
write(*,*) " downscaling tool, version "//trim(kVERSION_STRING)//", Copyright (C) 2017 The" | ||
write(*,*) " National Center for Atmospheric Research. GARD comes with" | ||
write(*,*) " ABSOLUTELY NO WARRANTY. This is free software, you may " | ||
write(*,*) " redistribute it under certain conditions; see LICENSE.txt" | ||
write(*,*) " for details." | ||
write(*,*) "" | ||
write(*,*) " Online Documentation : http://gard.readthedocs.io" | ||
write(*,*) " Report Bugs and Issues to : https://github.com/NCAR/GARD/issues" | ||
write(*,*) "" | ||
write(*,*) "-----------------------------------------------------------" | ||
write(*,*) "Usage: gard [-h] [--version] options_file" | ||
write(*,*) "" | ||
write(*,*) "-h Help information for GARD" | ||
write(*,*) "--version Print the version number" | ||
write(*,*) "options_file Input options file name" | ||
write(*,*) "" | ||
|
||
end subroutine print_model_init | ||
|
||
end module config_mod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters