Skip to content

Commit 0a053ef

Browse files
committed
changes for new librom api
1 parent 450337b commit 0a053ef

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

Common/src/CConfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2795,7 +2795,7 @@ void CConfig::SetConfig_Options() {
27952795
/*!\brief MAX_BASIS_DIM \n DESCRIPTION: Maximum number of basis vectors.*/
27962796
addUnsignedShortOption("MAX_BASIS_DIM", maxBasisDim, 100);
27972797

2798-
/*!\brief MAX_BASIS_DIM \n DESCRIPTION: Maximum number of basis vectors.*/
2798+
/*!\brief ROM_SAVE_FREQ \n DESCRIPTION: How often to save snapshots for unsteady problems.*/
27992799
addUnsignedShortOption("ROM_SAVE_FREQ", rom_save_freq, 1);
28002800

28012801
/* END_CONFIG_OPTIONS */

SU2_CFD/include/solvers/CSolver.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@
5757
#include "../variables/CVariable.hpp"
5858

5959
#ifdef HAVE_LIBROM
60-
#include "BasisGenerator.h"
61-
#include "QDEIM.h"
62-
#include "DEIM.h"
60+
#include "librom.h"
6361
#endif
6462

6563
using namespace std;

config_template.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,4 +1740,5 @@ BASIS_GENERATION = STATIC_POD
17401740
% Maximum number of basis vectors to keep (default: 100)
17411741
MAX_BASIS_DIM = 100
17421742
%
1743-
1743+
% Frequency of snapshots saves, for unsteady problems (default: 1. 2 means every other)
1744+
ROM_SAVE_FREQ = 1

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ if get_option('enable-librom')
191191
su2_cpp_args += '-DHAVE_LIBROM'
192192

193193
librom_root = get_option('librom_root')
194-
librom_dep = declare_dependency(include_directories: librom_root,
194+
librom_dep = declare_dependency(include_directories: librom_root+'/lib',
195195
link_args: ['-L'+librom_root+'/build', '-lROM'])
196196

197197
su2_deps += librom_dep

0 commit comments

Comments
 (0)