Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
334623e2
Commit
334623e2
authored
2 months ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Add simple doc for the get_mesh: Vh -> mesh function
parent
8d0b2273
No related branches found
No related tags found
1 merge request
!204
Remove m_cell_global_index from Connectivity
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/userdoc.org
+18
-0
18 additions, 0 deletions
doc/userdoc.org
with
18 additions
and
0 deletions
doc/userdoc.org
+
18
−
0
View file @
334623e2
...
...
@@ -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~
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment