Skip to content

Commit 593497e

Browse files
committed
fix basis formation in restore phase
1 parent 85948c9 commit 593497e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

rom/laghos.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,16 @@ int main(int argc, char *argv[])
15361536
SetWindowParameters(twparam, romOptions);
15371537
basis[romOptions.window-1]->LiftROMtoFOM(romS, *S);
15381538
delete basis[romOptions.window-1];
1539+
15391540
basis[romOptions.window] = new ROM_Basis(romOptions, MPI_COMM_WORLD, sFactorX, sFactorV);
1541+
1542+
if (romOptions.hyperreductionSamplingType == eqp_energy)
1543+
{
1544+
// Add the last lifted solution vector as the last
1545+
// column in the bases.
1546+
basis[romOptions.window]->AddLastCol_V(*S);
1547+
basis[romOptions.window]->AddLastCol_E(*S);
1548+
}
15401549
basis[romOptions.window]->Init(romOptions, *S);
15411550

15421551
if (romOptions.mergeXV)

0 commit comments

Comments
 (0)