MODFLOW 6
version 6.7.0.dev0
USGS Modular Hydrologic Model
|
This module contains simulation methods. More...
Functions/Subroutines | |
integer(i4b) function, public | count_errors () |
Return number of errors. More... | |
integer(i4b) function, public | count_warnings () |
Return number of warnings. More... | |
integer(i4b) function, public | count_notes () |
Return the number of notes stored. More... | |
subroutine, public | maxerrors (imax) |
Set the maximum number of errors to be stored. More... | |
subroutine, public | store_error (msg, terminate) |
Store an error message. More... | |
subroutine | get_filename (iunit, fname) |
Get the file name. More... | |
subroutine, public | store_error_unit (iunit, terminate) |
Store the file unit number. More... | |
subroutine, public | store_error_filename (filename, terminate) |
Store the erroring file name. More... | |
subroutine, public | store_warning (msg, substring) |
Store warning message. More... | |
subroutine, public | deprecation_warning (cblock, cvar, cver, endmsg, iunit) |
Store deprecation warning message. More... | |
subroutine, public | store_note (note) |
Store note. More... | |
subroutine, public | ustop (stopmess, ioutlocal) |
Stop the simulation. More... | |
subroutine | print_final_message (stopmess, ioutlocal) |
Print the final messages. More... | |
subroutine, public | converge_reset () |
Reset the simulation convergence flag. More... | |
subroutine, public | converge_check (hasConverged) |
Simulation convergence check. More... | |
subroutine, public | initial_message () |
Print the header and initializes messaging. More... | |
subroutine, public | final_message () |
Create final message. More... | |
subroutine | sim_closefiles () |
Close all open files. More... | |
Variables | |
type(messagestype) | sim_errors |
type(messagestype) | sim_uniterrors |
type(messagestype) | sim_warnings |
type(messagestype) | sim_notes |
This module contains simulation methods for storing warning and error messages and notes. This module also has methods for counting warnings, errors, and notes in addition to stopping the simulation. The module does not have any dependencies on models, exchanges, or solutions in a simulation.
subroutine, public simmodule::converge_check | ( | logical, intent(inout) | hasConverged | ) |
Subroutine to check simulation convergence. If the continue option is set the simulation convergence flag is set to True if the simulation did not actually converge for a time step and the non-convergence counter is incremented.
[in,out] | hasconverged | boolean indicting if the simulation is considered converged |
Definition at line 401 of file Sim.f90.
subroutine, public simmodule::converge_reset |
integer(i4b) function, public simmodule::count_errors |
integer(i4b) function, public simmodule::count_notes |
integer(i4b) function, public simmodule::count_warnings |
subroutine, public simmodule::deprecation_warning | ( | character(len=*), intent(in) | cblock, |
character(len=*), intent(in) | cvar, | ||
character(len=*), intent(in) | cver, | ||
character(len=*), intent(in), optional | endmsg, | ||
integer(i4b), intent(in), optional | iunit | ||
) |
Subroutine to store a warning message for deprecated variables and printing at the end of simulation.
[in] | cblock | block name |
[in] | cvar | variable name |
[in] | cver | version when variable was deprecated |
[in] | endmsg | optional user defined message to append at the end of the deprecation warning |
[in] | iunit | optional input file unit number with the deprecated variable |
Definition at line 255 of file Sim.f90.
subroutine, public simmodule::final_message |
Subroutine that creates the appropriate final message and terminates the program with an error message, if necessary.
Definition at line 471 of file Sim.f90.
|
private |
Subroutine to get the file name from the unit number for a open file. If the INQUIRE function returns the full path (for example, the INTEL compiler) then the returned file name (fname) is limited to the filename without the path.
[in] | iunit | open file unit number |
[in,out] | fname | file name attached to the open file unit number |
Definition at line 123 of file Sim.f90.
subroutine, public simmodule::initial_message |
Subroutine that prints the initial message and initializes the notes, warning messages, unit errors, and error messages.
Definition at line 441 of file Sim.f90.
subroutine, public simmodule::maxerrors | ( | integer(i4b), intent(in) | imax | ) |
|
private |
Subroutine to print the notes, warnings, errors and the final message (if passed). The subroutine also closes all open files.
[in] | stopmess | optional message to print before stopping the simulation |
[in] | ioutlocal | optional output file to final message to |
Definition at line 332 of file Sim.f90.
subroutine simmodule::sim_closefiles |
subroutine, public simmodule::store_error | ( | character(len=*), intent(in) | msg, |
logical, intent(in), optional | terminate | ||
) |
subroutine, public simmodule::store_error_filename | ( | character(len=*), intent(in) | filename, |
logical, intent(in), optional | terminate | ||
) |
Subroutine to store the file name issuing an error. By default, the simulation is terminated when this subroutine is called
[in] | filename | erroring file name |
[in] | terminate | boolean indicating if the simulation should be terminated |
Definition at line 202 of file Sim.f90.
subroutine, public simmodule::store_error_unit | ( | integer(i4b), intent(in) | iunit, |
logical, intent(in), optional | terminate | ||
) |
Subroutine to convert the unit number for a open file to a file name and indicate that there is an error reading from the file. By default, the simulation is terminated when this subroutine is called.
[in] | iunit | open file unit number |
[in] | terminate | boolean indicating if the simulation should be terminated |
Definition at line 167 of file Sim.f90.
subroutine, public simmodule::store_note | ( | character(len=*), intent(in) | note | ) |
subroutine, public simmodule::store_warning | ( | character(len=*), intent(in) | msg, |
character(len=*), intent(in), optional | substring | ||
) |
subroutine, public simmodule::ustop | ( | character, dimension (*), intent(in), optional | stopmess, |
integer(i4b), intent(in), optional | ioutlocal | ||
) |
Subroutine to stop the simulations with option to print message before stopping with the active error code.
[in] | stopmess | optional message to print before stopping the simulation |
[in] | ioutlocal | optional output file to final message to |
Definition at line 311 of file Sim.f90.
|
private |
|
private |
|
private |
|
private |