Skip to content

Commit

Permalink
temporary fix before the next PR
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer2368 committed Jun 14, 2024
1 parent 0b19d9b commit f6166d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rom_workflows.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void readRestartFiles(MGmolInterface *mgmol_)

/* Read the first snapshot to determin dimension and number of snapshots */
filename = string_format(rom_options.restart_file_fmt, minidx);
orbitals = mgmol->loadOrbitalFromRestartFile(filename);
mgmol->loadRestartFile(filename);
const int dim = orbitals->getLocNumpt();
const int chrom_num = orbitals->chromatic_number();
const int totalSamples = orbitals->chromatic_number() * num_restart;
Expand All @@ -54,7 +54,7 @@ void readRestartFiles(MGmolInterface *mgmol_)
for (int k = minidx; k <= maxidx; k++)
{
filename = string_format(rom_options.restart_file_fmt, k);
orbitals = mgmol->loadOrbitalFromRestartFile(filename);
mgmol->loadRestartFile(filename);
assert(dim == orbitals->getLocNumpt());
assert(chrom_num == orbitals->chromatic_number());

Expand Down

0 comments on commit f6166d6

Please sign in to comment.