forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move some InitEB functions out of the WarpX class
- Loading branch information
1 parent
c6bb95a
commit 0e51a77
Showing
4 changed files
with
46 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Copyright 2021 Lorenzo Giacomel, Luca Fedeli | ||
* | ||
* This file is part of WarpX. | ||
* | ||
* License: BSD-3-Clause-LBNL | ||
*/ | ||
|
||
#ifndef WARPX_EMBEDDEDBOUNDARY_WARPXINITEB_H | ||
#define WARPX_EMBEDDEDBOUNDARY_WARPXINITEB_H | ||
|
||
#include <AMReX_MultiFab.H> | ||
#include <AMReX_REAL.H> | ||
|
||
#include <array> | ||
#include <memory> | ||
|
||
namespace warpx::embedded_boundary | ||
{ | ||
|
||
/** | ||
* \brief Scale the edges lengths by the mesh width to obtain the real lengths. | ||
*/ | ||
void ScaleEdges (std::array< std::unique_ptr<amrex::MultiFab>, 3 >& edge_lengths, | ||
const std::array<amrex::Real,3>& cell_size); | ||
/** | ||
* \brief Scale the edges areas by the mesh width to obtain the real areas. | ||
*/ | ||
void ScaleAreas (std::array< std::unique_ptr<amrex::MultiFab>, 3 >& face_areas, | ||
const std::array<amrex::Real,3>& cell_size); | ||
|
||
} | ||
|
||
#endif //WARPX_EMBEDDEDBOUNDARY_WARPXINITEB_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
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