Comments (2)
can you please elaborate a bit more about what you mean by "boundary state and graph pointers"?
What is the purpose of doing this:
template <class T>
void setBCPointer(::pressiodemoapps::impl::GhostRelativeLocation rloc, T* ptr) {
m_bcFuncsHolder.setInternalPointer(rloc, ptr);
}
I mean, what is ptr
and what is it used for?
from pressio-demoapps.
The Schwarz Dirichlet boundary conditions requires access to a boundary state, and a graph referencing the boundary cell index to the appropriate ghost cell index within the boundary state. This is the same as in the original Schwarz implementation (on the schwarz
branch), which used
const auto bcIndex = m_graphBcs(gRow, 0);
if (bcIndex == -1) {
m_ghostLeft(gRow, 0) = m_state(uIndex+0);
m_ghostLeft(gRow, 1) = m_state(uIndex+1);
m_ghostLeft(gRow, 2) = m_state(uIndex+2);
m_ghostLeft(gRow, 3) = m_state(uIndex+3);
}
else {
m_ghostLeft(gRow, 0) = m_stateBcs(bcIndex+0);
m_ghostLeft(gRow, 1) = m_stateBcs(bcIndex+1);
m_ghostLeft(gRow, 2) = m_stateBcs(bcIndex+2);
m_ghostLeft(gRow, 3) = m_stateBcs(bcIndex+3);
}
in conjunction with routines that set those pointers
void setStateBc(state_type * stateBc){
m_stateBc = stateBc;
}
void setGraphBc(graph_type * ghostGraph){
m_ghostGraph = ghostGraph;
}
The function you quoted is just a catch-all for whatever similar pointers the user-defined BCFunctor might need to set after initializing the problem.
from pressio-demoapps.
Related Issues (20)
- python tests: add missing ones using as reference the C++ ones
- add radial advection problem HOT 1
- doc: verify commands for building the mesh for each problem
- 1D Burgers problem
- Documentation 2D Shallow water HOT 1
- burgers2d: erro in doc HOT 1
- 1D Burgers' equation HOT 6
- possible typo in documentation HOT 1
- ci too slow in debug mode: need to make tests smaller
- test auto add
- schwarz: semantics of problem classes
- schwarz: make ccu mesh default constructible, assignable and movable
- schwarz: `bool isFullyPeriodic()` should not be a method inside the ccu mesh class
- schwarz: expose nested alias for the connectivity graph
- schwarz: support custom BCs in a practical, less intrusive way
- cleanup headers includes
- make `numDofPerCell` NOT a template in the problem classes
- add method to api adapter to query numDofPerCells
- add dummy icIdentifier to Swe2d create_problem_eigen for consistent Schwarz subdomain initialization
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pressio-demoapps.