Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collect common solver functionality in base classes (#228)
* Skeleton for EqnSysBase. Only templates on Nektar eqsys, not particle sys yet. * Add TimeEvoEqnSysBase class. * Move equation sys base classes to nektar_interface dir. * m_field_to_index, m_required_flds, validate_fields, m_int_fld_names. * Remove virtual inheritance. * Move load_params to EqnSysBase. * Add v_InitObject to check required fields, load parameters, set time-integrated fields. * Missing utils header. * Add a base particle system, and a template parameter of TimeEvoEqnSysBase that must inherit from it. * Add missing v_InitObject() pass-through in TimeEvoEqnSysBase. * Convert SimpleSOL to use TimeEvoEqnSysBase, PartSysBase. * Use SolverRunner for SimpleSOL entrypoint. * Remove debug output. * Move cell indices map into PartSysBase. * Move num_parts_tot to PartSysBase and set its value from session file params at construction. * Correct a param string. * Correct order of calls in PartSysBase::free(). * Init particle_sys in EqnSysBase. * Free particle sys memory after fluid solver loop has finished, rather than in destructor. * Cope with particles being turned off. * Move solver base classes to nektar_interface subdir. * Consistent use of this-> in base classes. * Remove some variables and functions in SimpleSOL/NeutralParticleSystem that duplicate base class members. * Remove some variables and functions in SOLSystem that duplicate base class members. * m_ => this-> in SimpleSOL * Report some parameters commont to all particle systems. * Add [] operator to NektarFieldIndexMap. * Add write() functionality to PartSysBase. * Remove superfluous destructor definition. * Parameter name tweaks and further docstrings. * Add zero_array_of_arrays util function to EqnSysBase. * missing 'virtual' * Correct v_DoInitialise signature for [email protected]. * Missing 'override'. * Add an options struct for PartSysBase. * Call extend_halos_fixed_offset in PartSysBase after constructing the particle-mesh interface.
- Loading branch information