Skip to content

Commit

Permalink
refactor IonizationFactory.h
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaOberreit committed Aug 30, 2024
1 parent ac64c96 commit a49fb96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Ionization/IonizationFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ class IonizationFactory
}

private:
inline static void checkMaxCharge(const Species *species) {
const void checkMaxCharge(Species *species) {
if ( species->max_charge_ > ( int )species->atomic_number_ ) {
ERROR( "Charge > atomic_number for species " << species->name_ );
}
}

inline static void checkTestParticle(const Species *species) {
const void checkTestParticle(Species *species) {
if( species->particles->is_test ) {
ERROR( "Cannot ionize test species " << species->name_ );
}
}

inline static void checkNotLaserEnvelopeModel(const Params &params) {
const void checkNotLaserEnvelopeModel(Params &params) {
if ( params.Laser_Envelope_model ) {
ERROR( "The ionization model for species interacting with envelope is tunnel_envelope_averaged" );
}
Expand Down

0 comments on commit a49fb96

Please sign in to comment.