snapshot_exists Function

public function snapshot_exists(ix)

Uses

  • proc~~snapshot_exists~~UsesGraph proc~snapshot_exists snapshot_exists module~mod_global_parameters mod_global_parameters proc~snapshot_exists->module~mod_global_parameters 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

Arguments

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

Index of snapshot

Return Value logical


Called by

proc~~snapshot_exists~~CalledByGraph proc~snapshot_exists snapshot_exists proc~read_par_files read_par_files proc~read_par_files->proc~snapshot_exists proc~initialize_amrvac initialize_amrvac proc~initialize_amrvac->proc~read_par_files proc~main main proc~main->proc~initialize_amrvac program~agile agile program~agile->proc~main

Source Code

  logical function snapshot_exists(ix)
    use mod_global_parameters
    integer, intent(in)    :: ix
    !< Index of snapshot
    character(len=std_len) :: filename

    write(filename, "(a,i4.4,a)") trim(base_filename), ix, ".dat"
    inquire(file=trim(filename), exist=snapshot_exists)
  end function snapshot_exists