File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -521,10 +521,18 @@ impl Mesh {
521
521
}
522
522
}
523
523
524
+ /// Add a [`FiniteElementCollection`] to the mesh `self`.
525
+ ///
526
+ /// The argument of the function `fec` is the `FiniteElementCollection`
527
+ /// associated to the nodes of the mesh, if any. This collection
528
+ /// is used to represent the curvature of the elements (that is,
529
+ /// how the geometry of the problem is discretized). The
530
+ /// `FiniteElementCollection` returned by `fec` is the one that
531
+ /// will be used to discretize the PDE.
524
532
#[ must_use]
525
533
pub fn with_fec < ' a , FEC > ( & ' a mut self , fec : FEC ) -> MeshWithFEC < ' a >
526
534
where
527
- FEC : Fn (
535
+ FEC : FnOnce (
528
536
Option < Ref < ' a , FiniteElementCollection > > ,
529
537
) -> Cow < ' a , FiniteElementCollection > ,
530
538
{
You can’t perform that action at this time.
0 commit comments