peak_fields_lookup Function

public function peak_fields_lookup(flow_case_name, time_intg, n_species, les_on, ibm_on, output_vorticity, output_qcriterion, lowmem_transeq) result(n)

Static estimate of the allocator's work-field high-water mark (allocator_t%next_id after one substep - see src/allocator.f90), evaluated purely from config flags, no build/run required.

This is grid independent: which get_block calls a run makes depends only on flow_case_name and which features are switched on, not on the grid dimensions. Terms below are additive EXCEPT output_vorticity/output_qcriterion, which are measured jointly - see that block's comment for why.

Every number here was measured with the real build+measure probe (src/memcheck.f90's --build, CUDA backend, regular -not lowmem_transeq- transeq path) unless flagged TODO, in which case it is a best-effort value derived by reading the allocation site rather than measuring it, and should be treated as provisional until confirmed. --build's self-verification check (check_peak_fields_ table in src/memcheck.f90) compares its own measured next_id against this function for the same config and warns on any mismatch, so this table is expected to be corrected/extended over time rather than treated as final.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: flow_case_name
character(len=3), intent(in) :: time_intg
integer, intent(in) :: n_species
logical, intent(in) :: les_on
logical, intent(in) :: ibm_on
logical, intent(in) :: output_vorticity
logical, intent(in) :: output_qcriterion
logical, intent(in) :: lowmem_transeq

Return Value integer


Calls

proc~~peak_fields_lookup~~CallsGraph proc~peak_fields_lookup m_memory_estimate::peak_fields_lookup proc~nolds_of m_time_integrator::nolds_of proc~peak_fields_lookup->proc~nolds_of proc~abort_run m_logger::abort_run proc~nolds_of->proc~abort_run interface~str m_logger::str proc~abort_run->interface~str mpi_abort mpi_abort proc~abort_run->mpi_abort mpi_barrier mpi_barrier proc~abort_run->mpi_barrier mpi_comm_rank mpi_comm_rank proc~abort_run->mpi_comm_rank mpi_comm_size mpi_comm_size proc~abort_run->mpi_comm_size mpi_finalized mpi_finalized proc~abort_run->mpi_finalized mpi_initialized mpi_initialized proc~abort_run->mpi_initialized

Called by

proc~~peak_fields_lookup~~CalledByGraph proc~peak_fields_lookup m_memory_estimate::peak_fields_lookup proc~run_build_mode m_memcheck_build::run_build_mode proc~run_build_mode->proc~peak_fields_lookup program~x3d2_memcheck x3d2_memcheck program~x3d2_memcheck->proc~peak_fields_lookup program~x3d2_memcheck->proc~run_build_mode