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
Merge requests
!204
Remove m_cell_global_index from Connectivity
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove m_cell_global_index from Connectivity
feature/loadbalancing
into
develop
Overview
0
Commits
30
Pipelines
0
Changes
1
Merged
Stéphane Del Pino
requested to merge
feature/loadbalancing
into
develop
2 months ago
Overview
0
Commits
30
Pipelines
0
Changes
1
Expand
now this information is computed when needed (load balance)
closes
#11 (closed)
0
0
Merge request reports
Viewing commit
ff998ea8
Prev
Next
Show latest version
1 file
+
24
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ff998ea8
Add user doc for load_balance:mesh -> mesh
· ff998ea8
Stéphane Del Pino
authored
2 months ago
doc/userdoc.org
+
24
−
0
Options
@@ -3431,6 +3431,30 @@ In this example, we set three arrays defined at all nodes, all the
- ~face_values~ interpolates ~f~ at the centers of the faces of ~m~,
- ~cell_values~ interpolates ~f~ at the centers of the cells of ~m~.
***** ~load_balance:mesh -> mesh~
Creates a new partition of a mesh in parallel (~MPI~).
#+BEGIN_SRC pugs :exports both :results none
import mesh;
let m1:mesh, m1 = cartesianMesh([0,0], [1,1], (10,10));
let m2:mesh, m2 = load_balance(m1);
#+END_SRC
In this example the mesh ~m2~ is a new parallel partition of the mesh
~m1~. This implies that the two meshes, while being identical from the
mathematical point of view, are now different (and are not defined on
a same connectivity: the connectivity is actually balanced).
Discrete functions defined on ~m1~ are *not* implicitly transferred on the
mesh ~m2~! The function ~load_balance:(Vh)->(Vh)~ must be used to perform
mesh and data load balancing.
#+BEGIN_note
To simplify development of large calculations. A sequential call of
this function has the same effect: the mesh and its connectivity are
copied!
#+END_note
***** ~transform: mesh*function -> mesh~
This function allows to compute a new mesh as the transformation of a
Loading