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