sdr_write_proto_as_restart Subroutine

public subroutine sdr_write_proto_as_restart(proto, geometry, itime, header, prefix)

Write current leaves of the prototree as treelm restart.

This routine is mainly for debugging, to allow the visualization of the tree with harvester. The mesh will not contain any properties, instead additional data is provided as restart. Note that recursive output is used, to write each leaf node on its own, this output is thus really only useful for debugging, and might take very long for large meshes, however memory consumption should be fairly small.

Todo

SDR_write_proto_as_restart is a explicitly serial routine, deploying its own writing to save memory. Therefore this is some code duplication from treelmesh_module::dump_treelmesh.

Arguments

Type IntentOptional Attributes Name
type(sdr_protoTree_type), intent(in) :: proto

The prototree to output.

type(sdr_geometry_type), intent(in) :: geometry

Bounding cube, the prototree lives in.

integer, intent(in) :: itime

wave number in character format to prepend to filenames and timestamp

type(sdr_confHead_type), intent(in) :: header

some global information on solver name and version

character(len=*), intent(in), optional :: prefix

prefix for filenames


Calls

proc~~sdr_write_proto_as_restart~~CallsGraph proc~sdr_write_proto_as_restart sdr_write_proto_as_restart dump_tem_global dump_tem_global proc~sdr_write_proto_as_restart->dump_tem_global newunit newunit proc~sdr_write_proto_as_restart->newunit proc~protodata_ofnode protoData_ofNode proc~sdr_write_proto_as_restart->proc~protodata_ofnode proc~write_childleaves write_childLeaves proc~sdr_write_proto_as_restart->proc~write_childleaves sdr_append_protovar sdr_append_protovar proc~sdr_write_proto_as_restart->sdr_append_protovar sdr_nodeprop_btest sdr_nodeprop_btest proc~sdr_write_proto_as_restart->sdr_nodeprop_btest tem_create_varMap tem_create_varMap proc~sdr_write_proto_as_restart->tem_create_varMap tem_restart_writeHeader tem_restart_writeHeader proc~sdr_write_proto_as_restart->tem_restart_writeHeader tem_solverTag tem_solverTag proc~sdr_write_proto_as_restart->tem_solverTag tem_varSys_init tem_varSys_init proc~sdr_write_proto_as_restart->tem_varSys_init val val proc~sdr_write_proto_as_restart->val proc~protodata_ofnode->sdr_nodeprop_btest proc~protodata_ofnode->val proc~write_childleaves->proc~protodata_ofnode proc~write_childleaves->proc~write_childleaves proc~write_childleaves->sdr_nodeprop_btest proc~write_childleaves->val

Called by

proc~~sdr_write_proto_as_restart~~CalledByGraph proc~sdr_write_proto_as_restart sdr_write_proto_as_restart proc~floodwaves_tree floodwaves_tree proc~floodwaves_tree->proc~sdr_write_proto_as_restart program~seeder seeder program~seeder->proc~sdr_write_proto_as_restart proc~sdr_flood_tree sdr_flood_tree program~seeder->proc~sdr_flood_tree proc~sdr_flood_tree->proc~floodwaves_tree