Skip to content
Snippets Groups Projects
Michael Kuron's avatar
Michael Kuron authored
When storing fluxes on a staggered grid, the usual sign convention is that
fluxes point outward from the cell. Previously, we did not respect that as
staggered_access("E") would return the same thing as staggered_access("W")
would when called from the eastern-next cell. Now, when a field is declared
as STAGGERED_FLUX, it returns an accessor with a prefactor of -1 in that
case. The previous behavior where sign is not reversed is still useful when
e.g. storing sums (e.g. mean values) instead of differenes (e.g. finite
difference fluxes) on the staggered grid.
a7460abb
Name Last commit Last update
..
benchmark
kerncraft_inputs
test_data
__init__.py
test_address_of.py
test_aligned_array.py
test_assignment_collection.py
test_assignment_collection_dict_conversion.py
test_assignment_from_stencil.py
test_basic_usage_llvm.ipynb
test_blocking.py
test_blocking_staggered.py
test_boundary.py
test_buffer.py
test_buffer_gpu.py
test_complex_numbers.py
test_conditional_field_access.py
test_conditional_vec.py
test_cuda_known_functions.py
test_cudagpu.py
test_custom_backends.py
test_datahandling.py
test_datahandling_parallel.py
test_derivative.py
test_dtype_check.py
test_fast_approximation.py
test_fd_derivation.ipynb
test_fd_derivation.py
test_fd_derivation_via_rotation.ipynb
test_field.py
test_field_coordinates.py
test_field_equality.ipynb
test_finite_differences.py
test_floor_ceil_int_optimization.py
test_global_definitions.py
test_indexed_kernels.py
test_interpolation.py
test_jacobi_cbackend.py
test_jacobi_llvm.py
test_json_backend.py
test_kerncraft_coupling.py
test_loop_cutting.py
test_match_subs_for_assignment_collection.py
test_move_constant_before_loop.py
test_opencl.py
test_parameterstudy.py
test_phasefield_dentritic_3D.ipynb
test_pickle_support.py
test_plot.py
test_print_infinity.py
test_print_unsupported_node.py
test_random.py
test_simplification_strategy.py
test_size_and_layout_checks.py
test_size_and_layout_checks_llvm.py
test_sliced_iteration.py
test_small_block_benchmark.ipynb
test_source_code_comment.py
test_stencils.py
test_struct_types.py
test_sum_prod.py
test_sympy_optimizations.py
test_types.py
test_vectorization.py