-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'stp/cmake_refactor_to_merge' of github.com:ExCALIBUR-NE…
…PTUNE/NESO into stp/cmake_refactor_to_merge
- Loading branch information
Showing
37 changed files
with
767 additions
and
2,484 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
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,4 +1,4 @@ | ||
#include "PoissonPIC.h" | ||
#include "PoissonPIC.hpp" | ||
|
||
using namespace std; | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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,53 @@ | ||
#ifndef NEKTAR_SOLVERS_EQUATIONSYSTEMS_POISSON_PIC_H | ||
#define NEKTAR_SOLVERS_EQUATIONSYSTEMS_POISSON_PIC_H | ||
|
||
#include <map> | ||
#include <string> | ||
|
||
#include <SolverUtils/EquationSystem.h> | ||
using namespace Nektar::SolverUtils; | ||
|
||
namespace Nektar { | ||
class PoissonPIC : public EquationSystem { | ||
public: | ||
std::map<std::string, int> field_to_index; | ||
|
||
friend class MemoryManager<PoissonPIC>; | ||
|
||
/// Creates an instance of this class | ||
static EquationSystemSharedPtr | ||
create(const LibUtilities::SessionReaderSharedPtr &pSession, | ||
const SpatialDomains::MeshGraphSharedPtr &pGraph) { | ||
EquationSystemSharedPtr p = | ||
MemoryManager<PoissonPIC>::AllocateSharedPtr(pSession, pGraph); | ||
p->InitObject(); | ||
return p; | ||
} | ||
/// Name of class | ||
static std::string className1; | ||
static std::string className2; | ||
|
||
virtual ~PoissonPIC(); | ||
/** | ||
* Helper function to map from field name to field indices. | ||
* | ||
* @param name Field name (probably either "u" or "rho"). | ||
* @returns index (probably 0 or 1). | ||
*/ | ||
int GetFieldIndex(const std::string name); | ||
|
||
protected: | ||
StdRegions::ConstFactorMap m_factors; | ||
PoissonPIC(const LibUtilities::SessionReaderSharedPtr &pSession, | ||
const SpatialDomains::MeshGraphSharedPtr &pGraph); | ||
|
||
virtual void v_InitObject(bool DeclareFields = true); | ||
virtual void v_DoSolve(); | ||
virtual void v_GenerateSummary(SolverUtils::SummaryList &s); | ||
|
||
private: | ||
virtual Array<OneD, bool> v_GetSystemSingularChecks(); | ||
}; | ||
} // namespace Nektar | ||
|
||
#endif |
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
Oops, something went wrong.