Embedded boundaries with Fortran and C interfaces #3645
Unanswered
drjosephbrock
asked this question in
Q&A
Replies: 1 comment 4 replies
-
In principle, yes. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to extend the Advection_octree_F example to use embedded boundaries. My main solver is written in fortran and I want to implement embedded boundaries, which as of right now is not available through the fortran interface APIs. My initial idea is to set up the domain and options through the fortran code (similar to Advection_octree_F) and then include an interface to initialize the EB to tag cells. Something like;
and,
`
#ifdef __cplusplus
extern "C" {
#endif
void EB_setup(const amrex::Geometry& geom, const amrex::BoxArray& ba, const amrex::DistributionMapping& dm, const int& max_level);
#ifdef __cplusplus
}
#endif
`
the call from the main routine would look like;
Is this approach possible?
Beta Was this translation helpful? Give feedback.
All reactions