|
Last change
on this file since 13410 was 13410, checked in by Mathieu Morlighem, 13 years ago |
|
CHG: renaming vertex->dof vertex->pid for consistency (id, sid and pid) and cleaned up some code
|
|
File size:
788 bytes
|
| Line | |
|---|
| 1 | /*!\file VerticesDofx
|
|---|
| 2 | * \brief: establish degrees of freedom for all vertices: */
|
|---|
| 3 |
|
|---|
| 4 | #include "./VerticesDofx.h"
|
|---|
| 5 |
|
|---|
| 6 | #include "../../shared/shared.h"
|
|---|
| 7 | #include "../../include/include.h"
|
|---|
| 8 | #include "../../toolkits/toolkits.h"
|
|---|
| 9 | #include "../../EnumDefinitions/EnumDefinitions.h"
|
|---|
| 10 |
|
|---|
| 11 | void VerticesDofx( Vertices* vertices, Parameters* parameters) {
|
|---|
| 12 |
|
|---|
| 13 | /*intermediary: */
|
|---|
| 14 | int numberofvertices;
|
|---|
| 15 |
|
|---|
| 16 | /*figure out how many vertices we have: */
|
|---|
| 17 | numberofvertices=vertices->NumberOfVertices();
|
|---|
| 18 |
|
|---|
| 19 | /*Ensure that only for each cpu, the partition border vertices only will be
|
|---|
| 20 | * taken into account once across the cluster. To do so, we flag all the
|
|---|
| 21 | * clone vertices: */
|
|---|
| 22 | vertices->FlagClones(numberofvertices);
|
|---|
| 23 |
|
|---|
| 24 | /*Go through all vertices and distribute pids*/
|
|---|
| 25 | vertices->DistributePids(numberofvertices);
|
|---|
| 26 |
|
|---|
| 27 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.