-
Notifications
You must be signed in to change notification settings - Fork 195
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
30 changed files
with
707 additions
and
541 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* Copyright 2024 Axel Huebl | ||
* | ||
* This file is part of WarpX. | ||
* | ||
* License: BSD-3-Clause-LBNL | ||
*/ | ||
#ifndef WARPX_EB_ENABLED_H_ | ||
#define WARPX_EB_ENABLED_H_ | ||
|
||
#include <AMReX_ParmParse.H> | ||
|
||
namespace EB | ||
{ | ||
/** Are embedded boundaries enabled? */ | ||
bool enabled (); | ||
|
||
} // namespace EB | ||
#endif // WARPX_EB_ENABLED_H_ |
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,36 @@ | ||
/* Copyright 2024 Axel Huebl | ||
* | ||
* This file is part of WarpX. | ||
* | ||
* License: BSD-3-Clause-LBNL | ||
*/ | ||
#include "Enabled.H" | ||
|
||
#ifdef AMREX_USE_EB | ||
#include <AMReX_ParmParse.H> | ||
#endif | ||
|
||
|
||
namespace EB | ||
{ | ||
bool enabled () | ||
{ | ||
#ifndef AMREX_USE_EB | ||
return false; | ||
#else | ||
amrex::ParmParse const pp_warpx("warpx"); | ||
amrex::ParmParse const pp_eb2("eb2"); | ||
|
||
// test various runtime options to enable EBs | ||
std::string eb_implicit_function; | ||
bool eb_enabled = pp_warpx.query("eb_implicit_function", eb_implicit_function); | ||
|
||
// https://amrex-codes.github.io/amrex/docs_html/EB.html | ||
std::string eb_stl; | ||
eb_enabled |= pp_eb2.query("geom_type", eb_stl); | ||
|
||
return eb_enabled; | ||
#endif | ||
} | ||
|
||
} // namespace EB |
Oops, something went wrong.