idefix icon indicating copy to clipboard operation
idefix copied to clipboard

WARNING: Usage before initialization

Open dutta-alankar opened this issue 4 months ago • 1 comments

Describe the issue:

Encountering warning which shows usage before initialization.

Error message:

/freya/ptmp/mpa/adutt/idefix/src/fluid/convertConsToPrim.hpp(136): warning #549-D: variable "eos" is used before its value is set
          detected during instantiation of "void Fluid<Phys>::ConvertConsToPrim() [with Phys=DustPhysics]" 
/freya/ptmp/mpa/adutt/idefix/src/dataBlock/dataBlock.cpp(266): here

/freya/ptmp/mpa/adutt/idefix/src/fluid/convertConsToPrim.hpp(176): warning #549-D: variable "eos" is used before its value is set
          detected during instantiation of "void Fluid<Phys>::ConvertPrimToCons() [with Phys=DustPhysics]" 
/freya/ptmp/mpa/adutt/idefix/src/dataBlock/dataBlock.cpp(275): here

runtime information:

Compiled with

CXX=g++ cmake -DIdefix_MPI=OFF -DIdefix_DEBUG=OFF -DIdefix_HDF5=ON -DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_AMPERE80=ON -DKOKKOS_ENABLE_CXX17=ON -DCMAKE_CUDA_STANDARD=17 $IDEFIX_DIR

dutta-alankar avatar Sep 16 '25 15:09 dutta-alankar

can't reproduce the issue: tested with cuda 12.2, and g++10, g++11, g++12 and g++15.

Can you be more specific as to which compiler/cuda version/environement/test you're using?

glesur avatar Oct 17 '25 21:10 glesur