dump_solution Module

This module contians subroutine that 1. check if point of dumping condition is arrived. 2. create particular folder for dump. 3. dump data in that folder. 4. purge folders if required.


Uses

  • module~~dump_solution~~UsesGraph module~dump_solution dump_solution module~layout layout module~dump_solution->module~layout module~vartypes vartypes module~dump_solution->module~vartypes module~write_output write_output module~dump_solution->module~write_output module~utils utils module~dump_solution->module~utils module~layout->module~vartypes mpi mpi module~layout->mpi iso_fortran_env iso_fortran_env module~vartypes->iso_fortran_env module~write_output->module~vartypes module~write_output->module~utils module~write_output_tec write_output_tec module~write_output->module~write_output_tec module~write_output_tec_node write_output_tec_node module~write_output->module~write_output_tec_node module~write_output_vtk write_output_vtk module~write_output->module~write_output_vtk module~write_output_tec->module~vartypes module~write_output_tec->module~utils module~global_sst global_sst module~write_output_tec->module~global_sst module~viscosity viscosity module~write_output_tec->module~viscosity module~wall_dist wall_dist module~write_output_tec->module~wall_dist module~gradients gradients module~write_output_tec->module~gradients module~write_output_tec_node->module~vartypes module~write_output_tec_node->module~utils module~write_output_tec_node->module~global_sst module~write_output_tec_node->module~viscosity module~write_output_tec_node->module~wall_dist module~write_output_tec_node->module~gradients module~write_output_vtk->module~vartypes module~write_output_vtk->module~utils module~write_output_vtk->module~global_sst module~write_output_vtk->module~viscosity module~write_output_vtk->module~wall_dist module~write_output_vtk->module~gradients module~global_sst->iso_fortran_env module~viscosity->module~vartypes module~viscosity->module~utils module~viscosity->module~global_sst module~viscosity->module~wall_dist module~viscosity->module~gradients module~global_kkl global_kkl module~viscosity->module~global_kkl module~copy_bc copy_bc module~viscosity->module~copy_bc module~global_sa global_sa module~viscosity->module~global_sa module~wall_dist->module~vartypes module~wall_dist->module~utils module~gradients->module~vartypes module~gradients->module~utils module~global_kkl->iso_fortran_env module~copy_bc->module~vartypes module~global_sa->iso_fortran_env

Used by

  • module~~dump_solution~~UsedByGraph module~dump_solution dump_solution module~solver solver module~solver->module~dump_solution program~main main program~main->module~solver

Contents


Variables

TypeVisibility AttributesNameInitial
character(len=FILE_NAME_LENGTH), private :: dump_dirname

Name(check point number) of the directory to create

character(len=FILE_NAME_LENGTH), private :: purge_dirname

Name(check point number) of the directory to remove


Subroutines

public subroutine checkpoint(files, qp, nodes, control, scheme, dims)

Create a checkpoint dump file if the time has come

Arguments

Type IntentOptional AttributesName
type(filetype), intent(inout) :: files
real(kind=wp), intent(in), dimension(-2:dims%imx+2,-2:dims%jmx+2,-2:dims%kmx+2, 1:dims%n_var):: qp
type(nodetype), intent(in), dimension(-2:dims%imx+3,-2:dims%jmx+3,-2:dims%kmx+3):: nodes
type(controltype), intent(inout) :: control
type(schemetype), intent(in) :: scheme
type(extent), intent(in) :: dims

private subroutine create_directory(dirname)

Create a directory to keep the solution files from all the processor

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: dirname

private subroutine remove_directory(dirname)

Remove a directory

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: dirname

private subroutine purge_dump_dir(control)

Purge the directory based on the input

Arguments

Type IntentOptional AttributesName
type(controltype), intent(in) :: control

private subroutine make_dump_dir(control)

Solution directory and sub-directory in created with particular number

Arguments

Type IntentOptional AttributesName
type(controltype), intent(in) :: control

private subroutine dump_data(files, qp, nodes, control, scheme, dims)

Call to write save files in the directory

Arguments

Type IntentOptional AttributesName
type(filetype), intent(inout) :: files
real(kind=wp), intent(in), dimension(-2:dims%imx+2,-2:dims%jmx+2,-2:dims%kmx+2, 1:dims%n_var):: qp
type(nodetype), intent(in), dimension(-2:dims%imx+3,-2:dims%jmx+3,-2:dims%kmx+3):: nodes
type(controltype), intent(in) :: control
type(schemetype), intent(in) :: scheme
type(extent), intent(in) :: dims

private subroutine write_restart_log(files, scheme, control)

Call to write log file in the subdirectory "restart". It is useful information while restarting the solver

Arguments

Type IntentOptional AttributesName
type(filetype), intent(in) :: files
type(schemetype), intent(in) :: scheme
type(controltype), intent(in) :: control

private subroutine write_initial_resnorm(files, control)

Writing Initial resnorom in the log file to maintian continuity of resnorm while restrarting

Arguments

Type IntentOptional AttributesName
type(filetype), intent(in) :: files
type(controltype), intent(in) :: control