-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 parent
81a886e
commit c4fd42a
Showing
15 changed files
with
125 additions
and
78 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
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
30 changes: 30 additions & 0 deletions
30
examples/cells/dynamic/wrappers/wrapper_header_collection.cppwg.hpp
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,30 @@ | ||
// This file is auto-generated by cppwg; manual changes will be overwritten. | ||
|
||
#ifndef pycells_HEADERS_HPP_ | ||
#define pycells_HEADERS_HPP_ | ||
|
||
// Includes | ||
#include "AbstractMesh.hpp" | ||
#include "MeshFactory.hpp" | ||
#include "PottsMesh.hpp" | ||
|
||
// Instantiate Template Classes | ||
template class AbstractMesh<2, 2>; | ||
template class AbstractMesh<3, 3>; | ||
template class MeshFactory<PottsMesh<2>>; | ||
template class MeshFactory<PottsMesh<3>>; | ||
template class PottsMesh<2>; | ||
template class PottsMesh<3>; | ||
|
||
// Typedefs for nicer naming | ||
namespace cppwg | ||
{ | ||
typedef AbstractMesh<2, 2> AbstractMesh_2_2; | ||
typedef AbstractMesh<3, 3> AbstractMesh_3_3; | ||
typedef MeshFactory<PottsMesh<2>> MeshFactory_PottsMesh_2; | ||
typedef MeshFactory<PottsMesh<3>> MeshFactory_PottsMesh_3; | ||
typedef PottsMesh<2> PottsMesh_2; | ||
typedef PottsMesh<3> PottsMesh_3; | ||
} // namespace cppwg | ||
|
||
#endif // pycells_HEADERS_HPP_ |
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,10 @@ | ||
[project] | ||
name = "pycells" | ||
version = "0.0.1" | ||
|
||
[build-system] | ||
requires = ["scikit-build-core"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
[tool.scikit-build.cmake] | ||
build-type = "Release" |
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
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#include "AbstractMesh.hpp" | ||
#include "ConcreteMesh.hpp" | ||
#include "PottsMesh.hpp" | ||
|
||
template <unsigned DIM> | ||
ConcreteMesh<DIM>::ConcreteMesh() : AbstractMesh<DIM, DIM>() | ||
PottsMesh<DIM>::PottsMesh() : AbstractMesh<DIM, DIM>() | ||
{ | ||
} | ||
|
||
template <unsigned DIM> | ||
ConcreteMesh<DIM>::~ConcreteMesh() | ||
PottsMesh<DIM>::~PottsMesh() | ||
{ | ||
} | ||
template <unsigned DIM> | ||
void ConcreteMesh<DIM>::Scale(const double factor){ | ||
void PottsMesh<DIM>::Scale(const double factor){ | ||
// Scale the mesh | ||
}; | ||
|
||
template class ConcreteMesh<2>; | ||
template class ConcreteMesh<3>; | ||
template class PottsMesh<2>; | ||
template class PottsMesh<3>; |
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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
#ifndef _CONCRETE_MESH_HPP | ||
#define _CONCRETE_MESH_HPP | ||
#ifndef _POTTS_MESH_HPP | ||
#define _POTTS_MESH_HPP | ||
|
||
#include "AbstractMesh.hpp" | ||
|
||
/** | ||
* A concrete mesh implementation | ||
* A Potts mesh implementation | ||
*/ | ||
template <unsigned DIM> | ||
class ConcreteMesh : public AbstractMesh<DIM, DIM> | ||
class PottsMesh : public AbstractMesh<DIM, DIM> | ||
{ | ||
public: | ||
/** | ||
* Default Constructor | ||
*/ | ||
ConcreteMesh(); | ||
PottsMesh(); | ||
|
||
/** | ||
* Destructor | ||
*/ | ||
~ConcreteMesh(); | ||
~PottsMesh(); | ||
|
||
/** | ||
* Scale the mesh by a factor | ||
*/ | ||
void Scale(const double factor) override; | ||
}; | ||
|
||
#endif // _CONCRETE_MESH_HPP | ||
#endif // _POTTS_MESH_HPP |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.