Skip to content

Commit 8ee2ecb

Browse files
committed
Share mesh_lo and mesh_hi.
1 parent d565127 commit 8ee2ecb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

miniapps/tools/reconstruction_lor.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ int main(int argc, char *argv[])
4545
int order_ho = 3;
4646
int order_im = 3;
4747
int lref = order_im+1; // 4
48-
int href = lref;
4948
int order_lo = 0;
5049
bool vis = true;
5150
bool useH1 = false;
@@ -102,10 +101,6 @@ int main(int argc, char *argv[])
102101
// low-order refined mesh
103102
Mesh mesh_lo = Mesh::MakeRefined(mesh_im, lref, BasisType::GaussLobatto);
104103

105-
// high-order mesh
106-
// Mesh mesh_hi(mesh_lo);
107-
Mesh mesh_hi = Mesh::MakeRefined(mesh_im, href, BasisType::GaussLobatto);
108-
109104
// ======================================================
110105
// Create spaces
111106
// ======================================================
@@ -125,7 +120,7 @@ int main(int argc, char *argv[])
125120

126121
FiniteElementSpace fespace_lo(&mesh_lo, fec_lo);
127122
FiniteElementSpace fespace_im(&mesh_im, fec_im);
128-
FiniteElementSpace fespace_hi(&mesh_hi, fec_hi);
123+
FiniteElementSpace fespace_hi(&mesh_lo, fec_hi);
129124

130125
GridFunction rho_lo(&fespace_lo);
131126
GridFunction rho_im(&fespace_im);
@@ -137,9 +132,9 @@ int main(int argc, char *argv[])
137132
dc_lo.RegisterField("density", &rho_lo);
138133
VisItDataCollection dc_im("IM", &mesh_im);
139134
dc_im.RegisterField("density", &rho_im);
140-
VisItDataCollection dc_hi("HO", &mesh_hi);
135+
VisItDataCollection dc_hi("HO", &mesh_lo);
141136
dc_hi.RegisterField("density", &rho_hi);
142-
VisItDataCollection dc_ex("EX", &mesh_hi);
137+
VisItDataCollection dc_ex("EX", &mesh_lo);
143138
dc_ex.RegisterField("density", &rho_ex);
144139

145140
// ======================================================

0 commit comments

Comments
 (0)