Skip to content
Snippets Groups Projects
Commit 334623e2 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add simple doc for the get_mesh: Vh -> mesh function

parent 8d0b2273
No related branches found
No related tags found
1 merge request!204Remove m_cell_global_index from Connectivity
......@@ -4495,6 +4495,24 @@ to different meshes.
A good example of the use of this kind of function is mass fractions.
***** ~get_mesh:Vh -> mesh~
This function allows to retrieve the mesh that is used to define a
discrete function.
#+BEGIN_SRC pugs :exports both :results none
import mesh;
import scheme;
let m:mesh, m = cartesianMesh(0, [1,1], (10,10));
let f: R^2 -> R, x -> 2*x[0]+x[1];
let fh:Vh, fh = interpolate(m, P0(), f);
let m2: mesh, m2 = get_mesh(sum);
#+END_SRC
Observe that in this example the two variables refer to the same exact
mesh. There is no duplication.
***** ~load_balance: (Vh) -> (Vh)~
This function performs a parallel load balancing of a list of ~Vh~
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment