Skip to content
Snippets Groups Projects
Commit 35861927 authored by Jakub Klinkovský's avatar Jakub Klinkovský Committed by Jakub Klinkovský
Browse files

Added missing __cuda_callable__ flags to reduce the amount of compiler warnings

parent 54c34731
No related branches found
No related tags found
1 merge request!14Euler
......@@ -71,11 +71,13 @@ class CompressibleConservativeVariables
this->energy->getDofs( meshPointer );
}
__cuda_callable__
MeshFunctionPointer& getDensity()
{
return this->density;
}
__cuda_callable__
const MeshFunctionPointer& getDensity() const
{
return this->density;
......@@ -86,11 +88,13 @@ class CompressibleConservativeVariables
this->density = density;
}
__cuda_callable__
MomentumFieldPointer& getMomentum()
{
return this->momentum;
}
__cuda_callable__
const MomentumFieldPointer& getMomentum() const
{
return this->momentum;
......@@ -101,11 +105,14 @@ class CompressibleConservativeVariables
this->momentum = momentum;
}
/*MeshFunctionPointer& getPressure()
/*
__cuda_callable__
MeshFunctionPointer& getPressure()
{
return this->pressure;
}
__cuda_callable__
const MeshFunctionPointer& getPressure() const
{
return this->pressure;
......@@ -116,11 +123,13 @@ class CompressibleConservativeVariables
this->pressure = pressure;
}*/
__cuda_callable__
MeshFunctionPointer& getEnergy()
{
return this->energy;
}
__cuda_callable__
const MeshFunctionPointer& getEnergy() const
{
return this->energy;
......@@ -144,4 +153,4 @@ class CompressibleConservativeVariables
};
} // namespace TN
} // namespace TNL
......@@ -71,11 +71,13 @@ class CompressibleConservativeVariables
this->energy->getDofs( meshPointer );
}
__cuda_callable__
MeshFunctionPointer& getDensity()
{
return this->density;
}
__cuda_callable__
const MeshFunctionPointer& getDensity() const
{
return this->density;
......@@ -86,11 +88,13 @@ class CompressibleConservativeVariables
this->density = density;
}
__cuda_callable__
MomentumFieldPointer& getMomentum()
{
return this->momentum;
}
__cuda_callable__
const MomentumFieldPointer& getMomentum() const
{
return this->momentum;
......@@ -101,11 +105,14 @@ class CompressibleConservativeVariables
this->momentum = momentum;
}
/*MeshFunctionPointer& getPressure()
/*
__cuda_callable__
MeshFunctionPointer& getPressure()
{
return this->pressure;
}
__cuda_callable__
const MeshFunctionPointer& getPressure() const
{
return this->pressure;
......@@ -116,11 +123,13 @@ class CompressibleConservativeVariables
this->pressure = pressure;
}*/
__cuda_callable__
MeshFunctionPointer& getEnergy()
{
return this->energy;
}
__cuda_callable__
const MeshFunctionPointer& getEnergy() const
{
return this->energy;
......@@ -144,4 +153,4 @@ class CompressibleConservativeVariables
};
} // namespace TN
} // namespace TNL
......@@ -71,11 +71,13 @@ class CompressibleConservativeVariables
this->energy->getDofs( meshPointer );
}
__cuda_callable__
MeshFunctionPointer& getDensity()
{
return this->density;
}
__cuda_callable__
const MeshFunctionPointer& getDensity() const
{
return this->density;
......@@ -86,11 +88,13 @@ class CompressibleConservativeVariables
this->density = density;
}
__cuda_callable__
MomentumFieldPointer& getMomentum()
{
return this->momentum;
}
__cuda_callable__
const MomentumFieldPointer& getMomentum() const
{
return this->momentum;
......@@ -101,11 +105,14 @@ class CompressibleConservativeVariables
this->momentum = momentum;
}
/*MeshFunctionPointer& getPressure()
/*
__cuda_callable__
MeshFunctionPointer& getPressure()
{
return this->pressure;
}
__cuda_callable__
const MeshFunctionPointer& getPressure() const
{
return this->pressure;
......@@ -116,11 +123,13 @@ class CompressibleConservativeVariables
this->pressure = pressure;
}*/
__cuda_callable__
MeshFunctionPointer& getEnergy()
{
return this->energy;
}
__cuda_callable__
const MeshFunctionPointer& getEnergy() const
{
return this->energy;
......@@ -144,4 +153,4 @@ class CompressibleConservativeVariables
};
} // namespace TN
} // namespace TNL
......@@ -71,11 +71,13 @@ class CompressibleConservativeVariables
this->energy->getDofs( meshPointer );
}
__cuda_callable__
MeshFunctionPointer& getDensity()
{
return this->density;
}
__cuda_callable__
const MeshFunctionPointer& getDensity() const
{
return this->density;
......@@ -86,11 +88,13 @@ class CompressibleConservativeVariables
this->density = density;
}
__cuda_callable__
MomentumFieldPointer& getMomentum()
{
return this->momentum;
}
__cuda_callable__
const MomentumFieldPointer& getMomentum() const
{
return this->momentum;
......@@ -101,11 +105,14 @@ class CompressibleConservativeVariables
this->momentum = momentum;
}
/*MeshFunctionPointer& getPressure()
/*
__cuda_callable__
MeshFunctionPointer& getPressure()
{
return this->pressure;
}
__cuda_callable__
const MeshFunctionPointer& getPressure() const
{
return this->pressure;
......@@ -116,11 +123,13 @@ class CompressibleConservativeVariables
this->pressure = pressure;
}*/
__cuda_callable__
MeshFunctionPointer& getEnergy()
{
return this->energy;
}
__cuda_callable__
const MeshFunctionPointer& getEnergy() const
{
return this->energy;
......@@ -144,4 +153,4 @@ class CompressibleConservativeVariables
};
} // namespace TN
} // namespace TNL
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment