File tree 1 file changed +5
-5
lines changed
_lessons/time_integrators_sundials 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -236,25 +236,25 @@ mpirun -n 1 ./fcompare plt00001/ reference_solution/
236
236
Notice that the computed solution error is rather small (the solution has
237
237
magnitude $$ \mathcal{O}(1) $$ , so we hope for errors well below 0.1).
238
238
239
- Now re-run this hands-on code using a larger time step size of 100 .0,
239
+ Now re-run this hands-on code using a larger time step size of 25 .0,
240
240
241
241
``` bash
242
- mpirun -n 1 ./HandsOn1.CUDA.exe inputs-1 fixed_dt=100 .0
242
+ mpirun -n 1 ./HandsOn1.CUDA.exe inputs-1 fixed_dt=25 .0
243
243
```
244
244
245
- _ see how much faster the code ran! _ However, if we check the accuracy of the
245
+ _ the code now runs 5x faster. _ However, if we check the accuracy of the
246
246
computed solution,
247
247
248
248
``` bash
249
249
mpirun -n 1 ./fcompare plt00001/ reference_solution/
250
250
```
251
251
252
- we see it has an incredibly large error (mine was $$ \mathcal{O}(10^{284 }) $$ ).
252
+ we see it has an incredibly large error (mine was $$ \mathcal{O}(10^{98 }) $$ ).
253
253
254
254
{% include qanda
255
255
question='What do you think happened?'
256
256
answer='At this mesh size, the explicit algorithm is unstable for
257
- a time step size of 100 , but is stable for a time step size of 5.' %}
257
+ a time step size of 25 , but is stable for a time step size of 5.' %}
258
258
259
259
Run the code a few more times, trying to identify the largest stable time step
260
260
size.
You can’t perform that action at this time.
0 commit comments