forked from LLNL/libROM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStaticSVDSampler.C
57 lines (48 loc) · 1.17 KB
/
StaticSVDSampler.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/******************************************************************************
*
* Copyright (c) 2013-2019, Lawrence Livermore National Security, LLC
* and other libROM project developers. See the top-level COPYRIGHT
* file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
*
*****************************************************************************/
// Description: The class that determines the next time at which a sample
// should be taken for basis generation using the static SVD
// approach.
#include "StaticSVDSampler.h"
namespace CAROM {
StaticSVDSampler::StaticSVDSampler(
int dim,
int samples_per_time_interval,
bool debug_algorithm)
{
d_svd.reset(new StaticSVD(dim, samples_per_time_interval, debug_algorithm));
}
StaticSVDSampler::~StaticSVDSampler()
{
}
bool
StaticSVDSampler::isNextSample(
double time)
{
CAROM_NULL_USE(time);
return true;
}
double
StaticSVDSampler::computeNextSampleTime(
double* u_in,
double* rhs_in,
double time)
{
CAROM_NULL_USE(u_in);
CAROM_NULL_USE(rhs_in);
return time;
}
void
StaticSVDSampler::resetDt(
double new_dt)
{
CAROM_NULL_USE(new_dt);
}
}