Last change
on this file since 13410 was 13410, checked in by Mathieu Morlighem, 12 years ago |
CHG: renaming vertex->dof vertex->pid for consistency (id, sid and pid) and cleaned up some code
|
File size:
788 bytes
|
Rev | Line | |
---|
[4168] | 1 | /*!\file VerticesDofx
|
---|
[6231] | 2 | * \brief: establish degrees of freedom for all vertices: */
|
---|
[4168] | 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 |
|
---|
[6231] | 11 | void VerticesDofx( Vertices* vertices, Parameters* parameters) {
|
---|
[4168] | 12 |
|
---|
| 13 | /*intermediary: */
|
---|
| 14 | int numberofvertices;
|
---|
| 15 |
|
---|
| 16 | /*figure out how many vertices we have: */
|
---|
[4185] | 17 | numberofvertices=vertices->NumberOfVertices();
|
---|
[4168] | 18 |
|
---|
[13410] | 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: */
|
---|
[4168] | 22 | vertices->FlagClones(numberofvertices);
|
---|
| 23 |
|
---|
[13410] | 24 | /*Go through all vertices and distribute pids*/
|
---|
| 25 | vertices->DistributePids(numberofvertices);
|
---|
[4168] | 26 |
|
---|
| 27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.