snapshot_write_header Subroutine

public subroutine snapshot_write_header(fh, offset_tree, offset_block)

Uses

  • proc~~snapshot_write_header~~UsesGraph proc~snapshot_write_header snapshot_write_header mod_physics mod_physics proc~snapshot_write_header->mod_physics module~mod_forest mod_forest proc~snapshot_write_header->module~mod_forest module~mod_global_parameters mod_global_parameters proc~snapshot_write_header->module~mod_global_parameters module~mod_input_output_helper mod_input_output_helper proc~snapshot_write_header->module~mod_input_output_helper module~mod_basic_types mod_basic_types module~mod_global_parameters->module~mod_basic_types module~mod_connectivity mod_connectivity module~mod_global_parameters->module~mod_connectivity module~mod_constants mod_constants module~mod_global_parameters->module~mod_constants module~mod_physicaldata mod_physicaldata module~mod_global_parameters->module~mod_physicaldata module~mod_variables mod_variables module~mod_global_parameters->module~mod_variables mpi mpi module~mod_global_parameters->mpi module~mod_variables->module~mod_basic_types

Write header for a snapshot

If you edit the header, don't forget to update: snapshot_write_header(), snapshot_read_header(), doc/fileformat.md, tools/python/dat_reader.py

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: fh

File handle

integer(kind=MPI_OFFSET_KIND), intent(in) :: offset_tree

Offset of tree info

integer(kind=MPI_OFFSET_KIND), intent(in) :: offset_block

Offset of block data


Calls

proc~~snapshot_write_header~~CallsGraph proc~snapshot_write_header snapshot_write_header proc~snapshot_write_header1 snapshot_write_header1 proc~snapshot_write_header->proc~snapshot_write_header1 mpi_file_write mpi_file_write proc~snapshot_write_header1->mpi_file_write phys_write_info phys_write_info proc~snapshot_write_header1->phys_write_info

Called by

proc~~snapshot_write_header~~CalledByGraph proc~snapshot_write_header snapshot_write_header proc~write_snapshot write_snapshot proc~write_snapshot->proc~snapshot_write_header proc~saveamrfile saveamrfile proc~saveamrfile->proc~write_snapshot proc~timeintegration timeintegration proc~timeintegration->proc~saveamrfile proc~main main proc~main->proc~timeintegration program~agile agile program~agile->proc~main

Source Code

  subroutine snapshot_write_header(fh, offset_tree, offset_block)
    use mod_forest
    use mod_physics
    use mod_global_parameters
    use mod_input_output_helper, only: snapshot_write_header1
    integer, intent(in)                       :: fh
    !< File handle
    integer(kind=MPI_OFFSET_KIND), intent(in) :: offset_tree
    !< Offset of tree info
    integer(kind=MPI_OFFSET_KIND), intent(in) :: offset_block
    !< Offset of block data
    call snapshot_write_header1(fh, offset_tree, offset_block, cons_wnames,&
        nw)
  end subroutine snapshot_write_header