Skip to content

Commit

Permalink
add flag to follow Bfield
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Oct 25, 2023
1 parent 8cfeba9 commit f1b1164
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/Particles/PulsarParameters.H
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ public:
static amrex::Real m_BLC;
static amrex::Real m_beta_rec_RR;
static amrex::Real m_re_scaledratio;
static int m_do_zero_uperpB_driftframe;
private:
};

Expand Down
3 changes: 3 additions & 0 deletions Source/Particles/PulsarParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ amrex::Real Pulsar::m_gammarad_RR;
amrex::Real Pulsar::m_BLC;
amrex::Real Pulsar::m_beta_rec_RR;
amrex::Real Pulsar::m_re_scaledratio = 1.;
int Pulsar::m_do_zero_uperpB_driftframe;

Pulsar::Pulsar ()
{
Expand Down Expand Up @@ -403,6 +404,8 @@ Pulsar::ReadParameters () {
m_re_scaledratio = m_re_scaled / PhysConst::r_e;
amrex::Print() << " ratio : re_scaled/re : " << m_re_scaledratio << "\n";
}
pp.get("do_zero_uperpB_driftframe",m_do_zero_uperpB_driftframe);
amrex::Print() << " do zero uperp B " << m_do_zero_uperpB_driftframe << "\n";
}


Expand Down

0 comments on commit f1b1164

Please sign in to comment.