Skip to content

WARNING: Usage before initialization #350

@dutta-alankar

Description

@dutta-alankar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions