Skip to content

Commit

Permalink
Clean up extraneous commented out code and unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
trevilo committed Jul 19, 2024
1 parent 78769a3 commit 732a166
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/averaging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ Averaging::~Averaging() {
delete meanP;
delete meanV;
delete meanRho;
// delete meanEpsi;
}
}

Expand Down Expand Up @@ -183,7 +182,6 @@ void Averaging::initializeVizForM2ulPhyS(ParFiniteElementSpace *fes, ParFiniteEl
meanRho = new ParGridFunction(fes, meanUp->GetData());
meanV = new ParGridFunction(dfes, meanUp->GetData() + fes->GetNDofs());
meanP = new ParGridFunction(fes, meanUp->GetData() + (1 + nvel) * fes->GetNDofs());
// meanEpsi = new ParGridFunction(fes, meanUp->GetData() + (1 + nvel) * fes->GetNDofs() + 1);

// Register fields with paraview
pvdc_ = new ParaViewDataCollection(mean_output_name_, mesh);
Expand All @@ -194,7 +192,6 @@ void Averaging::initializeVizForM2ulPhyS(ParFiniteElementSpace *fes, ParFiniteEl
pvdc_->RegisterField("dens", meanRho);
pvdc_->RegisterField("vel", meanV);
pvdc_->RegisterField("press", meanP);
// pvdc_->RegisterField("epsi", meanEpsi);
pvdc_->RegisterField("rms", vari);
}

Expand Down
5 changes: 0 additions & 5 deletions src/tomboulides.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ Tomboulides::~Tomboulides() {
delete gradU_gf_;
delete gradV_gf_;
delete gradW_gf_;
delete Up_gf_;
delete epsi_gf_;
delete vfes_;
delete vfec_;
Expand Down Expand Up @@ -253,7 +252,6 @@ void Tomboulides::initializeSelf() {
p_gf_ = new ParGridFunction(pfes_);
resp_gf_ = new ParGridFunction(pfes_);

Up_gf_ = new ParGridFunction(vfes_);
epsi_gf_ = new ParGridFunction(sfes_);

mu_total_gf_ = new ParGridFunction(pfes_);
Expand Down Expand Up @@ -1147,9 +1145,6 @@ void Tomboulides::computeDissipation(Averaging &average, const int iter) {
gradV_gf_->SetFromTrueDofs(gradV_);
if (dim_ == 3) gradW_gf_->SetFromTrueDofs(gradW_);

// Up_gf_->SetFromTrueDofs(tmpR1_);
// vectorGrad3D(*epsi_gf_, *Up_gf_, *gradU_gf_, *gradV_gf_, *gradW_gf_);

// const double *dmu = (*thermo_interface_->viscosity).HostRead();
const double *dmu = mu_total_gf_->HostRead();
const double *drho = (*thermo_interface_->density).HostRead();
Expand Down
1 change: 0 additions & 1 deletion src/tomboulides.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ class Tomboulides final : public FlowBase {
mfem::ParGridFunction *gradW_gf_ = nullptr;
// mfem::ParGridFunction *buffer_uInlet_ = nullptr;
mfem::VectorGridFunctionCoefficient *velocity_field_ = nullptr;
mfem::ParGridFunction *Up_gf_ = nullptr;
mfem::ParGridFunction *epsi_gf_ = nullptr;

/// Pressure FEM objects and fields
Expand Down

0 comments on commit 732a166

Please sign in to comment.