Commit ebbfba11 authored by Knieps, Alexander's avatar Knieps, Alexander

Fixed missing part_list argument in line_trace function

parent a320e7ef
Pipeline #19332 passed with stage
in 34 seconds
......@@ -3,6 +3,7 @@ import numpy as np
import warnings
import netCDF4
from . import inputs
from . import cache
import functools
......@@ -44,7 +45,7 @@ def _do_trace_shaped(points, task, magnetic_config, part_list, client = client):
);
#Perform a line curve tracing
def line_trace(points, num_steps, magnetic_config, step_size = 1e-3, client = client, free_path = 1e-1, velocity = 1e6, diffusion_coefficient = 0.0):
def line_trace(points, num_steps, magnetic_config, part_list, step_size = 1e-3, client = client, free_path = 1e-1, velocity = 1e6, diffusion_coefficient = 0.0):
"""
Traces magnetic field lines.
......@@ -560,8 +561,13 @@ def _make_field_config(input, client = client):
config = client.types.MagneticConfig();
config.grid = make_grid(input.grid, client = client);
# TODO: Add AFS cache processing here
config.grid.gridField = make_points_3d(input.field, client = client);
cacheref = cache.maybe_cache_config(input);
if cacheref is None:
config.grid.gridField = make_points_3d(input.field, client = client);
else:
#print('Using cache ref ' + cacheref)
config.grid.afsFileName = cacheref;
return config;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment