mod_global_warning
Lines: 203 |
Visibility: private
This module provides an implementation of AbstractWarningHandler
for the book keeping of global warnings
Authors: Gunnar Schmitz and Redouan El Haouari
Dependencies
Uses
module~~mod_global_warning~~UsesGraph
module~mod_global_warning
mod_global_warning
module~mod_abstract_warning
mod_abstract_warning
module~mod_global_warning->module~mod_abstract_warning
module~mod_io
mod_io
module~mod_global_warning->module~mod_io
module~mod_throw
mod_throw
module~mod_global_warning->module~mod_throw
iso_fortran_env
iso_fortran_env
module~mod_io->iso_fortran_env
module~mod_optional_args
mod_optional_args
module~mod_io->module~mod_optional_args
module~mod_precision
mod_precision
module~mod_io->module~mod_precision
module~mod_throw->module~mod_io
iso_c_binding
iso_c_binding
module~mod_throw->iso_c_binding
module~mod_throw->iso_fortran_env
module~mod_mpi
mod_mpi
module~mod_throw->module~mod_mpi
module~mod_throw->module~mod_precision
module~mod_sort
mod_sort
module~mod_throw->module~mod_sort
module~mod_mpi->module~mod_precision
mpi_f08
mpi_f08
module~mod_mpi->mpi_f08
module~mod_precision->iso_c_binding
module~mod_precision->iso_fortran_env
module~mod_sort->module~mod_precision
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Used By
module~~mod_global_warning~~UsedByGraph
module~mod_global_warning
mod_global_warning
module~mod_abstractoptimizer
mod_abstractoptimizer
module~mod_abstractoptimizer->module~mod_global_warning
module~mod_dense_layer
mod_dense_layer
module~mod_dense_layer->module~mod_global_warning
module~mod_dense_layer_with_single_activations
mod_dense_layer_with_single_activations
module~mod_dense_layer_with_single_activations->module~mod_global_warning
module~mod_dense_layer_with_single_activations->module~mod_dense_layer
module~mod_enforce_reading
mod_enforce_reading
module~mod_enforce_reading->module~mod_global_warning
module~mod_hdnn
mod_hdnn
module~mod_hdnn->module~mod_global_warning
module~mod_neural_network
mod_neural_network
module~mod_hdnn->module~mod_neural_network
module~mod_input_layer_with_activations
mod_input_layer_with_activations
module~mod_input_layer_with_activations->module~mod_global_warning
module~mod_signal_handler
mod_signal_handler
module~mod_signal_handler->module~mod_global_warning
module~mod_write_headers
mod_write_headers
module~mod_signal_handler->module~mod_write_headers
module~mod_train_helpers
mod_train_helpers
module~mod_train_helpers->module~mod_global_warning
module~mod_train_helpers->module~mod_abstractoptimizer
module~smod_initialize_from_file
smod_initialize_from_file
module~smod_initialize_from_file->module~mod_global_warning
module~smod_validate_settings
smod_validate_settings
module~smod_validate_settings->module~mod_global_warning
program~runner
RuNNer
program~runner->module~mod_global_warning
program~runner->module~mod_abstractoptimizer
program~runner->module~mod_signal_handler
module~mod_calculate_coulomb_matrix
mod_calculate_coulomb_matrix
program~runner->module~mod_calculate_coulomb_matrix
module~mod_initialize
mod_initialize
program~runner->module~mod_initialize
module~mod_precompute_features_all_chunks
mod_precompute_features_all_chunks
program~runner->module~mod_precompute_features_all_chunks
module~mod_precompute_global_features_all_chunks
mod_precompute_global_features_all_chunks
program~runner->module~mod_precompute_global_features_all_chunks
module~mod_predict_mode
mod_predict_mode
program~runner->module~mod_predict_mode
module~mod_train_mode
mod_train_mode
program~runner->module~mod_train_mode
program~runner->module~mod_write_headers
module~mod_abstract_kalman_filter
mod_abstract_kalman_filter
module~mod_abstract_kalman_filter->module~mod_abstractoptimizer
module~mod_adam
mod_adam
module~mod_adam->module~mod_abstractoptimizer
module~mod_learning_rate
mod_learning_rate
module~mod_adam->module~mod_learning_rate
module~mod_calculate_coulomb_matrix->module~mod_signal_handler
module~mod_dataset_statistics_chi_all_chunks
mod_dataset_statistics_chi_all_chunks
module~mod_dataset_statistics_chi_all_chunks->module~mod_signal_handler
module~mod_feature_map_scaling_all_chunks
mod_feature_map_scaling_all_chunks
module~mod_feature_map_scaling_all_chunks->module~mod_signal_handler
module~mod_gradient_descent
mod_gradient_descent
module~mod_gradient_descent->module~mod_abstractoptimizer
module~mod_gradient_descent->module~mod_learning_rate
module~mod_initialize->module~mod_abstractoptimizer
module~mod_initialize->module~mod_hdnn
module~mod_optimizers
mod_optimizers
module~mod_initialize->module~mod_optimizers
module~mod_initialize->module~mod_write_headers
module~mod_kalman_filter
mod_kalman_filter
module~mod_kalman_filter->module~mod_abstractoptimizer
module~mod_kalman_filter->module~mod_abstract_kalman_filter
module~mod_kalman_filter_std
mod_kalman_filter_std
module~mod_kalman_filter_std->module~mod_abstractoptimizer
module~mod_kalman_filter_std->module~mod_abstract_kalman_filter
module~mod_layers
mod_layers
module~mod_layers->module~mod_dense_layer
module~mod_layers->module~mod_dense_layer_with_single_activations
module~mod_layers->module~mod_input_layer_with_activations
module~mod_learning_rate->module~mod_abstractoptimizer
module~mod_nada_opt
mod_nada_opt
module~mod_nada_opt->module~mod_abstractoptimizer
module~mod_nada_opt->module~mod_learning_rate
module~mod_optimizers->module~mod_abstractoptimizer
module~mod_optimizers->module~mod_adam
module~mod_optimizers->module~mod_gradient_descent
module~mod_optimizers->module~mod_kalman_filter
module~mod_optimizers->module~mod_kalman_filter_std
module~mod_optimizers->module~mod_nada_opt
module~mod_stochastic_gradient_descent
mod_stochastic_gradient_descent
module~mod_optimizers->module~mod_stochastic_gradient_descent
module~mod_precompute_features_all_chunks->module~mod_signal_handler
module~mod_precompute_global_features_all_chunks->module~mod_signal_handler
module~mod_predict_all_chunks
mod_predict_all_chunks
module~mod_predict_all_chunks->module~mod_signal_handler
module~mod_predict_mode->module~mod_enforce_reading
module~mod_predict_mode->module~mod_signal_handler
module~mod_predict_mode->module~mod_initialize
module~mod_write_outfiles
mod_write_outfiles
module~mod_predict_mode->module~mod_write_outfiles
module~mod_runner_interface_bindings
mod_runner_interface_bindings
module~mod_runner_interface_bindings->module~mod_enforce_reading
module~mod_runner_interface_bindings->module~mod_initialize
module~mod_stochastic_gradient_descent->module~mod_abstractoptimizer
module~mod_stochastic_gradient_descent->module~mod_learning_rate
module~mod_train_4g_atomic_charges_structure_batch
mod_train_4g_atomic_charges_structure_batch
module~mod_train_4g_atomic_charges_structure_batch->module~mod_abstractoptimizer
module~mod_train_4g_atomic_charges_structure_batch->module~mod_train_helpers
module~mod_train_atomic_property_multiple_atoms
mod_train_atomic_property_multiple_atoms
module~mod_train_atomic_property_multiple_atoms->module~mod_abstractoptimizer
module~mod_train_atomic_property_multiple_atoms->module~mod_train_helpers
module~mod_train_energy_multiple_structures
mod_train_energy_multiple_structures
module~mod_train_energy_multiple_structures->module~mod_abstractoptimizer
module~mod_train_energy_multiple_structures->module~mod_train_helpers
module~mod_train_energy_multiple_structures->module~mod_initialize
module~mod_train_forces_multiple_structures
mod_train_forces_multiple_structures
module~mod_train_forces_multiple_structures->module~mod_abstractoptimizer
module~mod_train_forces_multiple_structures->module~mod_train_helpers
module~mod_train_forces_multiple_structures->module~mod_initialize
module~mod_train_forces_multiple_structures->module~mod_train_energy_multiple_structures
module~mod_train_loop_4g_charges
mod_train_loop_4g_charges
module~mod_train_loop_4g_charges->module~mod_abstractoptimizer
module~mod_train_loop_4g_charges->module~mod_signal_handler
module~mod_train_loop_4g_charges->module~mod_train_helpers
module~mod_train_loop_4g_charges->module~mod_initialize
module~mod_train_loop_4g_charges->module~mod_train_4g_atomic_charges_structure_batch
module~mod_cost_calculator
mod_cost_calculator
module~mod_train_loop_4g_charges->module~mod_cost_calculator
module~mod_output_files_and_cost_4g_charges
mod_output_files_and_cost_4g_charges
module~mod_train_loop_4g_charges->module~mod_output_files_and_cost_4g_charges
module~mod_train_loop_atomic_property
mod_train_loop_atomic_property
module~mod_train_loop_atomic_property->module~mod_abstractoptimizer
module~mod_train_loop_atomic_property->module~mod_signal_handler
module~mod_train_loop_atomic_property->module~mod_train_helpers
module~mod_train_loop_atomic_property->module~mod_initialize
module~mod_train_loop_atomic_property->module~mod_train_atomic_property_multiple_atoms
module~mod_train_loop_atomic_property->module~mod_cost_calculator
module~mod_output_files_and_cost
mod_output_files_and_cost
module~mod_train_loop_atomic_property->module~mod_output_files_and_cost
module~mod_train_loop_short_range
mod_train_loop_short_range
module~mod_train_loop_short_range->module~mod_abstractoptimizer
module~mod_train_loop_short_range->module~mod_signal_handler
module~mod_train_loop_short_range->module~mod_train_helpers
module~mod_train_loop_short_range->module~mod_initialize
module~mod_train_loop_short_range->module~mod_train_energy_multiple_structures
module~mod_train_loop_short_range->module~mod_train_forces_multiple_structures
module~mod_train_loop_short_range->module~mod_cost_calculator
module~mod_train_loop_short_range->module~mod_output_files_and_cost
module~mod_output_files_and_cost_4g_short_range
mod_output_files_and_cost_4g_short_range
module~mod_train_loop_short_range->module~mod_output_files_and_cost_4g_short_range
module~mod_train_mode->module~mod_abstractoptimizer
module~mod_train_mode->module~mod_dataset_statistics_chi_all_chunks
module~mod_train_mode->module~mod_feature_map_scaling_all_chunks
module~mod_train_mode->module~mod_initialize
module~mod_train_mode->module~mod_predict_all_chunks
module~mod_train_mode->module~mod_train_loop_4g_charges
module~mod_train_mode->module~mod_train_loop_atomic_property
module~mod_train_mode->module~mod_train_loop_short_range
module~mod_write_outfiles_training
mod_write_outfiles_training
module~mod_train_mode->module~mod_write_outfiles_training
module~mod_write_headers->module~mod_abstractoptimizer
module~mod_lammps_interface
mod_lammps_interface
module~mod_lammps_interface->module~mod_runner_interface_bindings
module~mod_neural_network->module~mod_layers
module~mod_write_outfiles->module~mod_initialize
module~mod_write_outfiles_training->module~mod_write_outfiles
module~mod_cost_calculator->module~mod_write_outfiles_training
module~mod_output_files_and_cost->module~mod_cost_calculator
module~mod_output_files_and_cost_4g_charges->module~mod_cost_calculator
module~mod_output_files_and_cost_4g_short_range->module~mod_cost_calculator
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Module Variables
MXLEN :
integer – Max length for `idname`
global_warnings :
type (GlobalWarningHandler )– Initialized `GlobalWarningHandler`
Derived Types Summary
Procedures Summary
Name
Type
Description
add_warning
Subroutine
Adds an GlobalWarning to self if another GlobalWarning with the same idname is not owned...
merge_warning
Subroutine
Merges another GlobalWarninHandler instance into self.
reset_warning
Subroutine
Resets the counter of a GlobalWarning owned by self to 0.
report_warning
Subroutine
Prints all GlobalWarnings currently owned by self to STDOUT in a concise table format.
print_warning_line
Subroutine
Prints a single warning line consisting of a fixed-width prefix followed by message,...
free_warnings
Subroutine
Derived Types Details
type GlobalWarning
Container for indexed warnings
Components
idname :
character – Name ID
lenidname :
integer – Length of the name ID
message :
character – Warning message
counter :
integer – Number of times this warning appeared
handle :
type (GlobalWarning )– Handle to next element in linked list
Inherited By
type~~globalwarning~~InheritedByGraph
type~globalwarning
GlobalWarning
type~globalwarning->type~globalwarning
handle
type~globalwarninghandler
GlobalWarningHandler
type~globalwarninghandler->type~globalwarning
head, tail
Nodes of different colours represent the following:
Graph Key
Type
Type
This Page's Entity
This Page's Entity
Solid arrows point from a derived type to the parent type which it
extends. Dashed arrows point from a derived type to the other
types it contains as a components, with a label listing the name(s) of
said component(s).
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
type GlobalWarningHandler
Handler for GlobalWarnings
Components
Type-Bound Procedures
Name
Attributes
Binding
free_memory
public
⇒ free_memory
add
public
⇒ add_warning
report
public
⇒ report_warning
reset
public
⇒ reset_warning
merge
public
⇒ merge_warning
free_memory_child
public
⇒ free_warnings
Inherits
type~~globalwarninghandler~~InheritsGraph
type~globalwarninghandler
GlobalWarningHandler
type~abstractwarninghandler
AbstractWarningHandler
type~globalwarninghandler->type~abstractwarninghandler
type~globalwarning
GlobalWarning
type~globalwarninghandler->type~globalwarning
head, tail
type~globalwarning->type~globalwarning
handle
Nodes of different colours represent the following:
Graph Key
Type
Type
This Page's Entity
This Page's Entity
Solid arrows point from a derived type to the parent type which it
extends. Dashed arrows point from a derived type to the other
types it contains as a components, with a label listing the name(s) of
said component(s).
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Procedure Details
subroutine add_warning
subroutine add_warning ( & self, & identifier, & message, & print_immediately &)
Adds an GlobalWarning to self if another GlobalWarning with the same idname
is not owned by by self. If already owned, the counter of GlobalWarning
with the same idname is increased by 1 (OMP thread-safe).
Arguments
self :
class (GlobalWarningHandler ) [inout]
identifier :
character [in]– `idname` of the warning to be added.
message :
character [in]– Message of the warning to be added.
print_immediately :
logical [in]– Should the warning be printed immediately
Called By
Nodes of different colours represent the following:
Graph Key
Subroutine
Subroutine
Function
Function
Interface
Interface
Type Bound Procedure
Type Bound Procedure
Unknown Procedure Type
Unknown Procedure Type
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
subroutine merge_warning
subroutine merge_warning ( & self, & other &)
Merges another GlobalWarninHandler instance into self.
Arguments
subroutine reset_warning
subroutine reset_warning ( & self, & identifier, & counter &)
Resets the counter of a GlobalWarning owned by self to 0.
Arguments
self :
class (GlobalWarningHandler ) [inout]
identifier :
character [in]– `idname` of the warning to be resetted
counter :
integer [inout]– Return `counter` which will be resetted
subroutine report_warning
subroutine report_warning ( & self, & verbosity &)
Prints all GlobalWarnings currently owned by self to STDOUT
in a concise table format.
Arguments
self :
class (GlobalWarningHandler ) [in]
verbosity :
integer [in]– Won't be used, but is required by the interface of `AbstractWarningHandler`
Called By
Nodes of different colours represent the following:
Graph Key
Subroutine
Subroutine
Function
Function
Interface
Interface
Type Bound Procedure
Type Bound Procedure
Unknown Procedure Type
Unknown Procedure Type
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
subroutine print_warning_line
subroutine print_warning_line ( & prefix, & prefix_len, & message &)
Prints a single warning line consisting of a fixed-width prefix
followed by message, wrapping the message at OUTPUT_LENGTH and
indenting continuation lines to prefix_len so they align with the
start of the message on the first line.
Arguments
prefix :
character [in]– Text printed before the message
prefix_len :
integer [in]– Width of the prefix block / hanging indent
message :
character [in]– Warning message (will be wrapped)
Called By
Nodes of different colours represent the following:
Graph Key
Subroutine
Subroutine
Function
Function
Interface
Interface
Type Bound Procedure
Type Bound Procedure
Unknown Procedure Type
Unknown Procedure Type
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
subroutine free_warnings
subroutine free_warnings ( & self &)
Arguments