-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef _SPZPERIODICDATA_H_ | ||
#define _SPZPERIODICDATA_H_ | ||
|
||
#include "pzmanvector.h" | ||
#include "tpzautopointer.h" | ||
|
||
#include <map> | ||
|
||
|
||
/** @brief Structure for storing periodic information | ||
All three structures have the same indexing | ||
@note For gmsh generated meshes, they are sorted by dimension | ||
of periodic entities (points, lines, surfaces) | ||
*/ | ||
struct SPZPeriodicData{ | ||
//! list of dependent periodic ids | ||
TPZManVector<int,100> dep_mat_ids; | ||
//! list of independent periodic ids | ||
TPZManVector<int,100> indep_mat_ids; | ||
//! list of maps of periodic nodes INDICES for the pairs (dep_id,indep_id) | ||
TPZManVector<TPZAutoPointer<std::map<int64_t,int64_t>>,100> nodes_map; | ||
//note that for periodic meshes node->Index() != node->Id() for dependent nodes | ||
}; | ||
#endif /* _SPZPERIODICDATA_H_ */ |