Skip to content

Commit a9ae853

Browse files
committed
Initialize u_lo.
1 parent a5677c0 commit a9ae853

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

miniapps/tools/reconstruction.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ int main(int argc, char* argv[])
124124
L2_FECollection fec_exact(order_ho, dim);
125125
FiniteElementSpace fespace_exact(&mesh, &fec_exact);
126126

127+
// Initialize u_lo with element averages of the exact solution
128+
GridFunction u_exact(&fespace_exact);
129+
u_exact.ProjectCoefficient(u_function_exact);
130+
u_exact.GetElementAverages(u_lo);
131+
127132
// compute reconstruction
128133
L2Reconstruction(u_lo, u_hi);
129134

0 commit comments

Comments
 (0)