From a49fb96697fe3c4fd76798a17ac7c24b68c80460 Mon Sep 17 00:00:00 2001 From: GianlucaOberreit <109722947+GianlucaOberreit@users.noreply.github.com> Date: Fri, 30 Aug 2024 11:26:32 +0200 Subject: [PATCH] refactor IonizationFactory.h --- src/Ionization/IonizationFactory.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ionization/IonizationFactory.h b/src/Ionization/IonizationFactory.h index 597eb14af..ba91dd3af 100644 --- a/src/Ionization/IonizationFactory.h +++ b/src/Ionization/IonizationFactory.h @@ -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 ¶ms) { + const void checkNotLaserEnvelopeModel(Params ¶ms) { if ( params.Laser_Envelope_model ) { ERROR( "The ionization model for species interacting with envelope is tunnel_envelope_averaged" ); }