pub struct DmplexConfigProfile {
pub refinement: DmplexRefinementProfile,
pub distribution: DmplexDistributionProfile,
pub overlap: DmplexOverlapProfile,
pub checks: DmplexCheckProfile,
pub metric: DmplexMetricProfile,
pub io: DmplexIoProfile,
pub ordering: Option<DmplexOrderingProfile>,
pub solver: DmplexSolverPreparationProfile,
}Expand description
Top-level DMPLEX-style configuration profile.
Fields§
§refinement: DmplexRefinementProfileRefinement controls matching -dm_refine_pre and -dm_refine workflows.
distribution: DmplexDistributionProfileDistribution and ghost-section synchronization controls.
overlap: DmplexOverlapProfileOverlap/ghost-layer controls.
checks: DmplexCheckProfileDMPLEX-style diagnostic switches.
metric: DmplexMetricProfileMetric adaptation and remeshing controls.
io: DmplexIoProfileMesh I/O options carried for application-level loaders/writers.
ordering: Option<DmplexOrderingProfile>Optional topology-stratified section ordering during setup.
solver: DmplexSolverPreparationProfileSolver preparation prerequisite controls.
Implementations§
Source§impl DmplexConfigProfile
impl DmplexConfigProfile
Sourcepub fn mesh_dm_options(&self) -> MeshDMOptions
pub fn mesh_dm_options(&self) -> MeshDMOptions
Lower setup-related fields into MeshDMOptions.
Sourcepub fn distribution_config(&self) -> DistributionConfig
pub fn distribution_config(&self) -> DistributionConfig
Lower distribution fields into DistributionConfig.
Sourcepub fn mesh_check_options(&self) -> MeshCheckOptions
pub fn mesh_check_options(&self) -> MeshCheckOptions
Lower diagnostic switches into MeshCheckOptions.
Sourcepub fn prepare_for_solve_options(&self) -> PrepareForSolveOptions
pub fn prepare_for_solve_options(&self) -> PrepareForSolveOptions
Lower solver-preparation fields into PrepareForSolveOptions.
Sourcepub fn metric_adapt_options(&self) -> MeshDMMetricAdaptOptions
pub fn metric_adapt_options(&self) -> MeshDMMetricAdaptOptions
Lower metric adaptation fields into MeshDMMetricAdaptOptions.
Sourcepub fn from_cli_args<I, S>(args: I) -> Result<Self, String>
pub fn from_cli_args<I, S>(args: I) -> Result<Self, String>
Parse PETSc/DMPLEX-style command-line options from any string iterator.
Unknown options are ignored so applications can pass a full PETSc-like argv without pre-filtering mesh-sieve keys.
Sourcepub fn from_env() -> Result<Self, String>
pub fn from_env() -> Result<Self, String>
Start with defaults and apply supported environment variables.
Variables are uppercase option names without a leading dash, for example
DM_DISTRIBUTE=true, DM_DISTRIBUTE_OVERLAP=2, or
DM_PLEX_METRIC_TARGET_COMPLEXITY=1000.0.
Sourcepub fn apply_cli_args<I, S>(&mut self, args: I) -> Result<(), String>
pub fn apply_cli_args<I, S>(&mut self, args: I) -> Result<(), String>
Apply PETSc/DMPLEX-style CLI arguments to an existing profile.
Trait Implementations§
Source§impl Clone for DmplexConfigProfile
impl Clone for DmplexConfigProfile
Source§fn clone(&self) -> DmplexConfigProfile
fn clone(&self) -> DmplexConfigProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more