-
Notifications
You must be signed in to change notification settings - Fork 14
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
5 changed files
with
56 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CEXE_sources += reactDiff_functions.cpp | ||
CEXE_headers += reactDiff_functions.H | ||
CEXE_headers += reactDiff_namespace.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,16 @@ | ||
#ifndef _reactdiff_functions_H_ | ||
#define _reactdiff_functions_H_ | ||
|
||
#include <AMReX.H> | ||
|
||
#include "common_functions.H" | ||
#include "common_namespace.H" | ||
#include "reactDiff_namespace.H" | ||
|
||
using namespace reactDiff; | ||
using namespace amrex; | ||
using namespace common; | ||
|
||
void InitializeReactDiffNamespace(); | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "reactDiff_functions.H" | ||
#include "AMReX_ParmParse.H" | ||
|
||
// only used for split schemes (temporal_integrator>=0) | ||
// 0=explicit trapezoidal predictor/corrector | ||
// 1=Crank-Nicolson semi-implicit | ||
// 2=explicit midpoint | ||
// 3=multinomial diffusion | ||
// 4=forward Euler | ||
|
||
AMREX_GPU_MANAGED int reactDiff::diffusion_type; | ||
|
||
void InitializeReactDiffNamespace() | ||
{ | ||
// extract inputs parameters | ||
ParmParse pp; | ||
|
||
diffusion_type = 0; | ||
pp.query("diffusion_type",diffusion_type); | ||
|
||
return; | ||
} |
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,4 @@ | ||
namespace reactDiff { | ||
|
||
extern AMREX_GPU_MANAGED int diffusion_type; | ||
} |