(git:e5fdd81)
cp_output_handling.F File Reference

Go to the source code of this file.

Modules

module  cp_output_handling
 routines to handle the output, The idea is to remove the decision of wheter to output and what to output from the code that does the output, and centralize it here.
 

Functions/Subroutines

subroutine, public cp_output_handling::cp_print_key_section_create (print_key_section, location, name, description, print_level, each_iter_names, each_iter_values, add_last, filename, common_iter_levels, citations, unit_str)
 creates a print_key section More...
 
integer function, public cp_output_handling::cp_print_key_should_output (iteration_info, basis_section, print_key_path, used_print_key, first_time)
 returns what should be done with the given property if btest(res,cp_p_store) then the property should be stored in memory if btest(res,cp_p_file) then the property should be print ed to a file if res==0 then nothing should be done More...
 
logical function, public cp_output_handling::cp_printkey_is_on (iteration_info, print_key)
 returns true if the printlevel activates this printkey does not look if this iteration it should be printed More...
 
character(len=default_string_length) function, public cp_output_handling::cp_iter_string (iter_info, print_key, for_file)
 returns the iteration string, a string that is useful to create unique filenames (once you trim it) More...
 
subroutine, public cp_output_handling::cp_iterate (iteration_info, last, iter_nr, increment, iter_nr_out)
 adds one to the actual iteration More...
 
subroutine, public cp_output_handling::cp_add_iter_level (iteration_info, level_name, n_rlevel_new)
 Adds an iteration level. More...
 
subroutine, public cp_output_handling::cp_rm_iter_level (iteration_info, level_name, n_rlevel_att)
 Removes an iteration level. More...
 
character(len=default_path_length) function, public cp_output_handling::cp_print_key_generate_filename (logger, print_key, middle_name, extension, my_local)
 Utility function that returns a unit number to write the print key. Might open a file with a unique filename, generated from the print_key name and iteration info. More...
 
integer function, public cp_output_handling::cp_print_key_unit_nr (logger, basis_section, print_key_path, extension, middle_name, local, log_filename, ignore_should_output, file_form, file_position, file_action, file_status, do_backup, on_file, is_new_file, mpi_io, fout)
 ... More...
 
subroutine, public cp_output_handling::cp_print_key_finished_output (unit_nr, logger, basis_section, print_key_path, local, ignore_should_output, on_file, mpi_io)
 should be called after you finish working with a unit obtained with cp_print_key_unit_nr, so that the file that might have been opened can be closed. More...
 
subroutine, public cp_output_handling::cp_mpi_io_set (flag)
 Sets flag which determines whether or not to use MPI I/O for I/O routines that have been parallized with MPI. More...
 
logical function, public cp_output_handling::cp_mpi_io_get ()
 Gets flag which determines whether or not to use MPI I/O for I/O routines that have been parallized with MPI. More...
 

Variables

integer, parameter, public cp_output_handling::add_last_no = 0
 
integer, parameter, public cp_output_handling::add_last_numeric = 1
 
integer, parameter, public cp_output_handling::add_last_symbolic = 2
 
integer, parameter, public cp_output_handling::silent_print_level = 0
 
integer, parameter, public cp_output_handling::low_print_level = 1
 
integer, parameter, public cp_output_handling::medium_print_level = 2
 
integer, parameter, public cp_output_handling::high_print_level = 3
 
integer, parameter, public cp_output_handling::debug_print_level = 4
 
integer, parameter, public cp_output_handling::cp_p_file_if = 3
 
integer, parameter, public cp_output_handling::cp_p_store_if = 4
 
integer, parameter, public cp_output_handling::cp_p_store = 2
 
integer, parameter, public cp_output_handling::cp_p_file = 1
 
integer, parameter, public cp_output_handling::cp_p_file_each = 5
 
integer, parameter, public cp_output_handling::cp_p_store_each = 6
 
integer, parameter, public cp_output_handling::cp_p_calc = 7
 
integer, parameter, public cp_output_handling::cp_out_none = 0
 
integer, parameter, public cp_output_handling::cp_out_file_if = IBSET(0, cp_p_file_if)
 
integer, parameter, public cp_output_handling::cp_out_store_if = IBSET(0, cp_p_store_if)
 
integer, parameter, public cp_output_handling::cp_out_file = IBSET(0, cp_p_file)
 
integer, parameter, public cp_output_handling::cp_out_store = IBSET(0, cp_p_store)
 
integer, parameter, public cp_output_handling::cp_out_calc = IBSET(0, cp_p_calc)
 
integer, parameter, public cp_output_handling::cp_out_file_each = IBSET(0, cp_p_file_each)
 
integer, parameter, public cp_output_handling::cp_out_store_each = IBSET(0, cp_p_store_each)
 
integer, parameter, public cp_output_handling::cp_out_default = cp_out_file_if