Skip to content

Commit 86f0df6

Browse files
committed
Fix warnings in new example
1 parent bda96fd commit 86f0df6

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

examples/transient/transient_ex3/claw_system.C

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ClawSystem::ClawSystem (EquationSystems & es,
5555

5656
// Allocate SparseMatrices. I could not figure out how to do
5757
// this in the initialization list, I don't think it's possible.
58-
for (auto i : make_range(2))
58+
for (unsigned int i=0; i<2; ++i)
5959
{
6060
_advection_matrices.push_back(SparseMatrix<Number>::build(es.comm()));
6161
_avg_matrices.push_back(SparseMatrix<Number>::build(es.comm()));
@@ -622,7 +622,6 @@ void ClawSystem::assemble_jump_coupling_matrix()
622622
// Data for surface integrals on the element boundary
623623
const std::vector<std::vector<Real>> & phi_face = fe_elem_face->get_phi();
624624
const std::vector<Real> & JxW_face = fe_elem_face->get_JxW();
625-
const std::vector<Point> & qface_normals = fe_elem_face->get_normals();
626625
const std::vector<Point> & qface_points = fe_elem_face->get_xyz();
627626

628627
// Data for surface integrals on the neighbor boundary

examples/transient/transient_ex3/transient_ex3.C

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ int main (int argc, char** argv)
8080
// Read mesh options from the input file
8181
GetPot infile(parameters_filename);
8282
unsigned int n_elem = infile("n_elem", 1); // Determines the number of elements in the "truth" mesh
83-
const unsigned int dim = 2; // The number of spatial dimensions
8483

8584
// Build a mesh
8685
Mesh mesh (init.comm());

0 commit comments

Comments
 (0)