Séparation des fichiers pour les solveurs de Riemann et les fonctions d'initialisation#34
Open
Séparation des fichiers pour les solveurs de Riemann et les fonctions d'initialisation#34
Conversation
262b4af to
09be247
Compare
f015f9d to
c32be84
Compare
c32be84 to
fe21353
Compare
Collaborator
Author
|
J'ai refactorisé le switch du solveur de riemann, mais je crois que j'oublie un KOKKOS_INLINE non ? En tout ça a été validé par avec ma suite de tests |
c9b843d to
3816e61
Compare
3816e61 to
3cad355
Compare
Collaborator
Author
|
Concernant la factory, cppcheck se plaint de quelques trucs : src/init/hydro/Sod.h:19:8: performance: inconclusive: Technically the member function 'fv2d::InitSod < IX >::init' can be static (but you may consider moving to unnamed namespace). [functionStatic]
void init(Array Q, const Params &full_params)
^
src/init/hydro/Sod.h:19:8: performance: inconclusive: Technically the member function 'fv2d::InitSod < IY >::init' can be static (but you may consider moving to unnamed namespace). [functionStatic]
void init(Array Q, const Params &full_params)
^
src/init/hydro/Blast.h:13:8: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
void init(Array Q, const Params &full_params)
^
src/init/InitFormula.h:16:16: note: Virtual function in base class
virtual void init(Array Q, const Params &full_params) = 0;
^
src/init/hydro/Blast.h:13:8: note: Function in derived class
void init(Array Q, const Params &full_params)
^
src/init/hydro/C91.h:13:8: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
void init(Array Q, const Params &full_params)
^
src/init/InitFormula.h:16:16: note: Virtual function in base class
virtual void init(Array Q, const Params &full_params) = 0;
^
src/init/hydro/C91.h:13:8: note: Function in derived class
void init(Array Q, const Params &full_params)
^
src/init/hydro/Diffusion.h:13:8: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
void init(Array Q, const Params &full_params)
^
src/init/InitFormula.h:16:16: note: Virtual function in base class
virtual void init(Array Q, const Params &full_params) = 0;
^
src/init/hydro/Diffusion.h:13:8: note: Function in derived class
void init(Array Q, const Params &full_params)
^
src/init/hydro/GreshoVortex.h:16:8: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
void init(Array Q, const Params &full_params)
^
src/init/InitFormula.h:16:16: note: Virtual function in base class
virtual void init(Array Q, const Params &full_params) = 0;
^
src/init/hydro/GreshoVortex.h:16:8: note: Function in derived class
void init(Array Q, const Params &full_params)
^
src/init/hydro/H84.h:12:8: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
void init(Array Q, const Params &full_params)
^
src/init/InitFormula.h:16:16: note: Virtual function in base class
virtual void init(Array Q, const Params &full_params) = 0;
^
src/init/hydro/H84.h:12:8: note: Function in derived class
void init(Array Q, const Params &full_params)
^
src/init/hydro/KelvinHelmholtz.h:16:8: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
void init(Array Q, const Params &full_params)
^
src/init/InitFormula.h:16:16: note: Virtual function in base class
virtual void init(Array Q, const Params &full_params) = 0;
^
src/init/hydro/KelvinHelmholtz.h:16:8: note: Function in derived class
void init(Array Q, const Params &full_params)
^
src/init/hydro/RayleighTaylor.h:13:8: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
void init(Array Q, const Params &full_params)
^
src/init/InitFormula.h:16:16: note: Virtual function in base class
virtual void init(Array Q, const Params &full_params) = 0;
^
src/init/hydro/RayleighTaylor.h:13:8: note: Function in derived class
void init(Array Q, const Params &full_params)
^
src/init/InitFactory.h:46:63: performance: Function parameter 'formula_name' should be passed by const reference. [passedByValue]
static std::shared_ptr<InitFormula> instantiate(std::string formula_name)
^
src/init/InitFactory.h:31:43: performance: Function parameter 'formula_name' should be passed by const reference. [passedByValue]
static bool registerFormula(std::string formula_name)
^
src/init/InitFactory.h:52:18: style: Variable 'f' can be declared as reference to const [constVariableReference]
for (auto &f : formulae)
^
src/init/hydro/C91.h:23:18: style: Variable 'x' is assigned a value that is never used. [unreadVariable]
real_t x = pos[IX];
^
src/init/hydro/H84.h:22:18: style: Variable 'x' is assigned a value that is never used. [unreadVariable]
real_t x = pos[IX]; |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pour les solveurs de Riemann, chacun se trouve dans un fichier dédié, dans le dossier
riemann. On a accès par défaut aux :HLLHLLCFSLPLes fichiers d'en-têtes sont inclus dans le fichier
RiemannSolvers.h.Pour les fichiers d'initialisation, le fonctionnement est similaire. Les problèmes sont dans le dossier
init, dans lequel on trouve les sous-dossiershydroetmhd.Les fichiers d'en-têtes sont inclus dans
Init.h.