Skip to content

Commit

Permalink
Speed-up test for buck converter
Browse files Browse the repository at this point in the history
  • Loading branch information
lisawim committed Mar 7, 2024
1 parent 827a8ed commit c3107c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pySDC/projects/PinTSimE/buck_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main():
use_adaptivity=use_adaptivity,
use_detection=use_detection,
hook_class=hook_class,
interval=(0.0, 2e-2),
interval=(0.0, 1e-2),
dt_list=[1e-5, 2e-5],
nnodes=[M_fix],
)
Expand Down
16 changes: 8 additions & 8 deletions pySDC/projects/PinTSimE/hardcoded_solutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,17 +450,17 @@ def testSolution(u_num, prob_cls_name, dt, use_adaptivity, use_detection):
msg = f"Error for {prob_cls_name} for dt={dt:.1e}:"
if dt == 2e-5:
expected = {
'vC1': 9.890997780767632,
'vC2': 4.710415385551326,
'iLp': -0.315406990615236,
'sum_niters': 5036.0,
'vC1': 9.781955920747619,
'vC2': 6.396971204930281,
'iLp': -1.1056614708409171,
'sum_niters': 2519.0,
}
elif dt == 1e-5:
expected = {
'vC1': 9.891508522329485,
'vC2': 4.70939963429714,
'iLp': -0.32177442457657557,
'sum_niters': 8262.0,
'vC1': 9.782142840662102,
'vC2': 6.388775533709242,
'iLp': -1.0994027552202539,
'sum_niters': 4242.0,
}
got.update(
{
Expand Down

0 comments on commit c3107c5

Please sign in to comment.