Skip to content

Commit

Permalink
NULL => nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
anaegel committed Sep 26, 2024
1 parent 6b8c7d4 commit ea1bb5f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions ugbase/lib_disc/spatial_disc/disc_util/conv_shape.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ update(const TFVGeom* geo,
const MathMatrix<dim, dim>* DiffDisp,
bool computeDeriv)
{
UG_ASSERT(geo != NULL, "Null pointer");
UG_ASSERT(Velocity != NULL, "Null pointer");
UG_ASSERT(geo != nullptr, "Null pointer");
UG_ASSERT(Velocity != nullptr, "Null pointer");

// \todo: think about: this should be something like scvf.num_sh()
const size_t numSH = geo->num_sh();
Expand Down Expand Up @@ -280,8 +280,8 @@ update(const TFVGeom* geo,
const MathMatrix<dim, dim>* DiffDisp,
bool computeDeriv)
{
UG_ASSERT(geo != NULL, "Null pointer");
UG_ASSERT(Velocity != NULL, "Null pointer");
UG_ASSERT(geo != nullptr, "Null pointer");
UG_ASSERT(Velocity != nullptr, "Null pointer");

// \todo: think about: this should be something like scvf.num_sh()
const size_t numSH = geo->num_sh();
Expand Down Expand Up @@ -456,8 +456,8 @@ update(const TFVGeom* geo,
const MathMatrix<dim, dim>* DiffDisp,
bool computeDeriv)
{
UG_ASSERT(geo != NULL, "Null pointer");
UG_ASSERT(Velocity != NULL, "Null pointer");
UG_ASSERT(geo != nullptr, "Null pointer");
UG_ASSERT(Velocity != nullptr, "Null pointer");

// \todo: think about: this should be something like scvf.num_sh()
const size_t numSH = geo->num_sh();
Expand Down Expand Up @@ -618,9 +618,9 @@ update(const TFVGeom* geo,
const MathMatrix<dim, dim>* DiffDisp,
bool computeDeriv)
{
UG_ASSERT(geo != NULL, "Null pointer");
UG_ASSERT(Velocity != NULL, "Null pointer");
// UG_ASSERT(DiffDisp != NULL, "Null pointer");
UG_ASSERT(geo != nullptr, "Null pointer");
UG_ASSERT(Velocity != nullptr, "Null pointer");
// UG_ASSERT(DiffDisp != nullptr, "Null pointer");

// Compute Volume of Element
// typedef typename TFVGeom::ref_elem_type ref_elem_type;
Expand All @@ -644,7 +644,7 @@ update(const TFVGeom* geo,
number lambda = -1;

// if DiffDisp-Tensor passed, compute lambda
if(DiffDisp != NULL)
if(DiffDisp != nullptr)
{
// Get Gradients
MathVector<dim> DiffGrad;
Expand Down Expand Up @@ -679,7 +679,7 @@ update(const TFVGeom* geo,
// Case 1:
// full upwind is used
///////////////////////////////////////////////////////////////////
if(lambda <= 0 || DiffDisp == NULL)
if(lambda <= 0 || DiffDisp == nullptr)
{
// Choose Upwind corner
const size_t up = (flux >= 0) ? scvf.from() : scvf.to();
Expand Down Expand Up @@ -902,8 +902,8 @@ bool ConvectionShapesSkewedUpwind<TDim>::
const MathMatrix<dim, dim> *DiffDisp,
bool computeDeriv)
{
UG_ASSERT(geo != NULL, "Null pointer");
UG_ASSERT(Velocity != NULL, "Null pointer");
UG_ASSERT(geo != nullptr, "Null pointer");
UG_ASSERT(Velocity != nullptr, "Null pointer");

// \todo: think about: this should be something like scvf.num_sh()
const size_t numSH = geo->num_sh();
Expand Down Expand Up @@ -1071,8 +1071,8 @@ bool ConvectionShapesLinearProfileSkewedUpwind<TDim>::
const MathMatrix<dim, dim> *DiffDisp,
bool computeDeriv)
{
UG_ASSERT(geo != NULL, "Null pointer");
UG_ASSERT(Velocity != NULL, "Null pointer");
UG_ASSERT(geo != nullptr, "Null pointer");
UG_ASSERT(Velocity != nullptr, "Null pointer");

// \todo: think about: this should be something like scvf.num_sh()
const size_t numSH = geo->num_sh();
Expand Down

0 comments on commit ea1bb5f

Please sign in to comment.