hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
memory_estimate.hpp File Reference
#include <cstddef>
#include <string>
#include "hpfem/core/types.hpp"
#include "hpfem/fespace/dof_map.hpp"
#include "hpfem/mesh/mesh.hpp"
#include "hpfem/solvers/linear_solver.hpp"
Include dependency graph for memory_estimate.hpp:

Go to the source code of this file.

Classes

struct  hpfem::solvers::MemoryEstimate
 

Namespaces

namespace  hpfem
 
namespace  hpfem::solvers
 

Functions

template<int Dim>
MemoryEstimate hpfem::solvers::estimate_memory (const fespace::NedelecDofMap< Dim > &dofs, DirectSolverBackend backend=DirectSolverBackend::kAuto, bool condensed=true, const fespace::DofMap< Dim > *longitudinal=nullptr)
 
template<int Dim>
MemoryEstimate hpfem::solvers::estimate_memory (const mesh::Mesh< Dim > &mesh, int order, DirectSolverBackend backend=DirectSolverBackend::kAuto, bool conical=false)
 
std::string hpfem::solvers::format_bytes (std::size_t bytes)
 Human-readable byte count, "1.2 GB" / "230 MB" / "12 kB".
 

Detailed Description

Memory estimate of a direct solve before the run (M15 F9): DoFs, nonzeros of the system matrix and entries of the factors from the DoF layout alone, with fits of the fill-in of the backends measured on the Maxwell operator (docs/theory/solvers.md, "Memory estimate"). An estimate, not a bound: the factor sizes are within about ±35 % of the measurements on structured meshes; locally refined or elongated meshes differ more.