Skip to content

Commit

Permalink
reduce resolution to speed up
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Oct 30, 2020
1 parent 9135932 commit ec208b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Visualization/continuum_snake.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def run_snake(
snake_sim = SnakeSimulator()

# setting up test params
n_elem = 50
n_elem = 20
start = np.zeros((3,))
direction = np.array([0.0, 0.0, 1.0])
normal = np.array([0.0, 1.0, 0.0])
Expand Down Expand Up @@ -128,7 +128,7 @@ def make_callback(self, system, time, current_step: int):
# timestepper = PEFRL()

final_time = (11.0 + 0.01) * period
dt = 1.0e-5 * period
dt = 5.0e-5 * period
total_steps = int(final_time / dt)
print("Total steps", total_steps)
integrate(timestepper, snake_sim, final_time, total_steps)
Expand Down

0 comments on commit ec208b9

Please sign in to comment.