Reduced the number of periods in integration tests for Extended Path.
parent
c43cfb45a8
commit
3a5b221dde
|
@ -36,7 +36,7 @@ options_.ep.stochastic.order = 0;
|
|||
options_.ep.stochastic.nodes = 0;
|
||||
options_.console_mode = 0;
|
||||
|
||||
ts = extended_path([],1000);
|
||||
ts = extended_path([],10);
|
||||
|
||||
options_.ep.verbosity = 0;
|
||||
options_.ep.stochastic.order = 1;
|
||||
|
@ -44,7 +44,7 @@ options_.ep.IntegrationAlgorithm='Tensor-Gaussian-Quadrature';
|
|||
options_.ep.stochastic.nodes = 3;
|
||||
options_.console_mode = 0;
|
||||
|
||||
sts = extended_path([],1000);
|
||||
sts = extended_path([],10);
|
||||
|
||||
if max(max(abs(ts-sts)))>pi*options_.dynatol.x
|
||||
disp('Stochastic Extended Path:: Something is wrong here (potential bug in extended_path.m)!!!')
|
||||
|
|
|
@ -33,13 +33,13 @@ options_.ep.order = 0;
|
|||
options_.ep.nnodes = 0;
|
||||
options_.console_mode = 0;
|
||||
|
||||
ts = extended_path([],100);
|
||||
ts = extended_path([],10);
|
||||
|
||||
options_.ep.stochastic.status = 1;
|
||||
options_.ep.IntegrationAlgorithm='Tensor-Gaussian-Quadrature';
|
||||
options_.ep.order = 1;
|
||||
options_.ep.nnodes = 3;
|
||||
sts = extended_path([],100);
|
||||
sts = extended_path([],10);
|
||||
|
||||
if max(max(abs(ts.data-sts.data))) > 1e-12
|
||||
error('extended path algorithm fails in ./tests/ep/linearmodel.mod')
|
||||
|
|
|
@ -75,19 +75,19 @@ steady(nocheck);
|
|||
options_.ep.verbosity = 0;
|
||||
|
||||
options_.ep.stochastic.order = 0;
|
||||
ts0 = extended_path([],100);
|
||||
ts0 = extended_path([],10);
|
||||
|
||||
options_.ep.stochastic.order = 1;
|
||||
options_.ep.stochastic.nodes = 3;
|
||||
options_.ep.IntegrationAlgorithm='Tensor-Gaussian-Quadrature';
|
||||
ts1_3 = extended_path([],100);
|
||||
ts1_3 = extended_path([],10);
|
||||
|
||||
options_.ep.stochastic.nodes = 5;
|
||||
ts1_5 = extended_path([],100);
|
||||
ts1_5 = extended_path([],10);
|
||||
|
||||
options_.ep.stochastic.order = 2;
|
||||
options_.ep.stochastic.nodes = 3;
|
||||
ts2_3 = extended_path([],100);
|
||||
ts2_3 = extended_path([],10);
|
||||
|
||||
options_.ep.stochastic.nodes = 5;
|
||||
ts2_5 = extended_path([],100);
|
||||
ts2_5 = extended_path([],10);
|
||||
|
|
|
@ -77,5 +77,5 @@ end;
|
|||
steady;
|
||||
|
||||
options_.ep.IntegrationAlgorithm='Tensor-Gaussian-Quadrature';
|
||||
extended_path(periods=100);
|
||||
extended_path(periods=10);
|
||||
|
||||
|
|
|
@ -72,12 +72,12 @@ copyfile('rbcii_steady_state.m','rbcii_steadystate2.m');
|
|||
options_.ep.stochastic.nodes = 2;
|
||||
options_.console_mode = 0;
|
||||
|
||||
ts = extended_path([],100);
|
||||
ts = extended_path([],20);
|
||||
|
||||
options_.ep.stochastic.order = 1;
|
||||
options_.ep.IntegrationAlgorithm='Tensor-Gaussian-Quadrature';
|
||||
// profile on
|
||||
ts1_4 = extended_path([],100);
|
||||
ts1_4 = extended_path([],20);
|
||||
// profile off
|
||||
// profile viewer
|
||||
@#else
|
||||
|
|
Loading…
Reference in New Issue