Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
771c19a
Add a new GK equation object to do passive advection, with a velocity…
manauref Jul 3, 2026
1056915
Change field_id in rt_gk_passive so that the omega_H dt doesn't show …
manauref Jul 3, 2026
9aff987
Sync advection speeds so that parallel runs come out correctly. Add 2…
manauref Jul 4, 2026
b3601fd
I think the changes to rect_grid_find_cell in a recent PR might've br…
manauref Jul 6, 2026
fa5ca03
Add TS BC unit test corresponding to figure 14 of the paper. Seems to…
manauref Jul 6, 2026
965ca1a
Protect against integrating over zero-volume regions in some sub-cell…
manauref Jul 7, 2026
5af001f
Add passive advection CBC test. Works fine with constant q, but the q…
manauref Jul 7, 2026
ce9b41d
Add a TS BC unit test with the same setup as the CBC reg test. We may…
manauref Jul 7, 2026
9473d77
Add an assert in twistshift BC updater that errors out of the change …
manauref Jul 9, 2026
f4a9122
Change the way we look for shifted cells in periodic copies along y i…
manauref Jul 9, 2026
c289cd3
Fix y extents in CBC input files so the wedge number is indeed an int…
manauref Jul 9, 2026
ae49bfd
Fix kernel selection in device code, and add some missing casts.
manauref Jul 10, 2026
b6cac76
Add device CBC unit test. Add bc_twistshift_new method, instead of in…
manauref Jul 10, 2026
a9a5395
Merge branch 'gk_passive' of https://github.com/ammarhakim/gkylzero i…
manauref Jul 10, 2026
ce4c128
Change signature of bc_twistshift_new so that structs are passed by a…
manauref Jul 10, 2026
2e9a4e2
remove the p=2 dirichlet test since there is an assert for this case.
Antoinehoff Jul 28, 2026
e71ae32
fix the dg_gyrokinetic_kern_tm unit test, the 0 enum is NONE collisio…
Antoinehoff Jul 28, 2026
6939018
update the reference value because the recipe changed in bcc40b7c3
Antoinehoff Jul 28, 2026
fd32e2a
update the reference value for m2Correct in 2x2v test as the bmag rep…
Antoinehoff Jul 28, 2026
04ea377
Remove the rescale ghost jacf updater since it is not used anymore in…
Antoinehoff Jul 28, 2026
7840f8b
Update the geometry convention for the straight cylinder case. Reduce…
Antoinehoff Jul 29, 2026
7900791
Propose to clamp the argument of the square root in dphidtheta comput…
Antoinehoff Jul 29, 2026
4728e2a
add a better interface when running the unit tests so that we have a …
Antoinehoff Jul 29, 2026
873072b
checkout from main the Makefile since it is now a separated PR
Antoinehoff Jul 29, 2026
889918f
Fix the cu_array_copy_range_to_range_diff_range_dim test. It was fail…
Antoinehoff Jul 31, 2026
46f4817
Fix the GPU dg array mask test. The global_max variable (on host) was…
Antoinehoff Jul 31, 2026
f1faa66
Fix a bug found by running the tensor unit test on GPU. The copy of a…
Antoinehoff Jul 31, 2026
b7531cc
fix two additional GK tests that were failing on stellar with `nvcc` …
Antoinehoff Aug 3, 2026
f9375ed
Merge remote-tracking branch 'origin/main' into gk_unit_test_fix
Antoinehoff Aug 4, 2026
91a704f
the components of the multiplication in the GPU part of the test was …
Antoinehoff Aug 4, 2026
58898ab
checkout the dg_em_vars vlasov unit test from kitp-hamil-vlasov branc…
Antoinehoff Aug 4, 2026
b45d537
remove unused kernels
Antoinehoff Aug 4, 2026
26d69a7
Merge branch 'gk_unit_test_fix' of https://github.com/ammarhakim/gkey…
Antoinehoff Aug 4, 2026
531b649
Merge branch 'main' into gk_passive
manauref Aug 4, 2026
74ec869
Merge branch 'main' into gk_passive
manauref Aug 4, 2026
4ebcbc8
Increase resolution in d3d_iwl and tcv_iwl tests so they run (they ca…
manauref Aug 4, 2026
5a6498d
Increase another tolerance to 1e-9 in TS BC unit test so it passes on…
manauref Aug 4, 2026
d17066b
Fix mem leak in GK app where an array was not released at program's end.
manauref Aug 5, 2026
520e8b7
Update perlmutter CPU machine files to remove all possibility of GPU …
manauref Aug 5, 2026
2e9eba0
Reduce Nmu in TCV iwl test to reduce runtime.
manauref Aug 5, 2026
3bd8bf7
Merge remote-tracking branch 'origin/gk_passive' into gk_unit_test_fix
Antoinehoff Aug 5, 2026
dbc4aba
Revert "Merge remote-tracking branch 'origin/gk_passive' into gk_unit…
Antoinehoff Aug 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions core/unit/ctest_dg_array_mask.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void test_mask_advance_threshold(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -159,7 +159,7 @@ void test_mask_advance_all_below(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -205,7 +205,7 @@ void test_mask_advance_all_above(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -255,7 +255,7 @@ void test_mask_advance_negative_values(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -312,7 +312,7 @@ void test_mask_advance_greater_than_threshold(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -365,7 +365,7 @@ void test_mask_advance_greater_than_all_above(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -411,7 +411,7 @@ void test_mask_advance_greater_than_all_below(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -461,7 +461,7 @@ void test_mask_advance_greater_than_negative_values(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -520,7 +520,7 @@ void test_mask_eval(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -623,7 +623,7 @@ void test_mask_scale_by_cell(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -781,7 +781,7 @@ void test_mask_advance_frac_threshold(bool use_gpu)
}
gkyl_array_copy(arr, arr_ho);
double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -839,7 +839,7 @@ void test_mask_advance_frac_threshold_greater(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -929,7 +929,7 @@ void test_mask_advance_frac_threshold_spatial(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -1019,7 +1019,7 @@ void test_mask_advance_frac_threshold_spatial_greater(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -1105,7 +1105,7 @@ void test_mask_advance_threshold_ext_range(bool use_gpu, int ncell, int nghost_c
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -1209,7 +1209,7 @@ void test_mask_advance_frac_threshold_ext_range(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down Expand Up @@ -1353,7 +1353,7 @@ void test_mask_advance_frac_threshold_spatial_ext_range(bool use_gpu)
gkyl_array_copy(arr, arr_ho);

double global_max = 0.0;
gkyl_array_reduce(&global_max, arr, GKYL_MAX);
gkyl_array_reduce(&global_max, arr_ho, GKYL_MAX);
gkyl_dg_array_mask_advance_threshold(mask, global_max);
gkyl_dg_array_mask_advance(mask, arr);

Expand Down
3 changes: 3 additions & 0 deletions core/zero/range.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ gkyl_range_deflate(struct gkyl_range* srng,
SET_SUB_RANGE(srng->flags);

// for CUDA ops
struct gkyl_range sub_range;
gkyl_range_init(&sub_range, srng->ndim, srng->lower, srng->upper);
gkyl_copy_long_arr(GKYL_MAX_DIM+1, sub_range.ac, srng->iac);
srng->nthreads = GKYL_DEFAULT_NUM_THREADS;
srng->nblocks = srng->volume/srng->nthreads + 1;
}
Expand Down
4 changes: 2 additions & 2 deletions core/zero/tensor_field.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ gkyl_tensor_field_cu_dev_new(size_t rank, size_t ndim, size_t size, const enum g
// so that the whole tfld->on_dev struct can be passed to a device kernel
tfld->on_dev = gkyl_cu_malloc(sizeof(struct gkyl_tensor_field));
gkyl_cu_memcpy(tfld->on_dev, tfld, sizeof(struct gkyl_tensor_field), GKYL_CU_MEMCPY_H2D);
// set device-side data pointer in tfld->on_dev to tfld->data
// set device-side data pointer in tfld->on_dev to tfld->data->on-dev
// (which is the host-side pointer to the device data)
gkyl_cu_memcpy(&((tfld->on_dev)->tdata), &tfld->tdata, sizeof(void*), GKYL_CU_MEMCPY_H2D);
gkyl_cu_memcpy(&((tfld->on_dev)->tdata), &tfld->tdata->on_dev, sizeof(void*), GKYL_CU_MEMCPY_H2D);

return tfld;
}
Expand Down
1 change: 0 additions & 1 deletion gyrokinetic/apps/gyrokinetic.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ gyrokinetic_deflate_delta_ts(struct gkyl_gyrokinetic_app* app, struct gkyl_array
gkyl_translate_dim_release(transd_2d_1d);
gkyl_array_release(buffer_perp);
gkyl_array_copy(app->delta_ts_x_up, delta_ts_x_dev);
gkyl_array_release(delta_ts_x_dev);
}

gkyl_gyrokinetic_app*
Expand Down
32 changes: 0 additions & 32 deletions gyrokinetic/ker/inflate_surf/gkyl_inflate_surf_kernels.h

This file was deleted.

9 changes: 0 additions & 9 deletions gyrokinetic/ker/inflate_surf/inflate_surf_1x1v_ser_p1.c

This file was deleted.

9 changes: 0 additions & 9 deletions gyrokinetic/ker/inflate_surf/inflate_surf_1x1v_ser_p2.c

This file was deleted.

12 changes: 0 additions & 12 deletions gyrokinetic/ker/inflate_surf/inflate_surf_1x2v_ser_p1.c

This file was deleted.

14 changes: 0 additions & 14 deletions gyrokinetic/ker/inflate_surf/inflate_surf_1x2v_ser_p2.c

This file was deleted.

7 changes: 0 additions & 7 deletions gyrokinetic/ker/inflate_surf/inflate_surf_1x_ser_p1.c

This file was deleted.

7 changes: 0 additions & 7 deletions gyrokinetic/ker/inflate_surf/inflate_surf_1x_ser_p2.c

This file was deleted.

34 changes: 0 additions & 34 deletions gyrokinetic/ker/inflate_surf/inflate_surf_2x2v_ser_p1.c

This file was deleted.

50 changes: 0 additions & 50 deletions gyrokinetic/ker/inflate_surf/inflate_surf_2x2v_ser_p2.c

This file was deleted.

14 changes: 0 additions & 14 deletions gyrokinetic/ker/inflate_surf/inflate_surf_2x_ser_p1.c

This file was deleted.

16 changes: 0 additions & 16 deletions gyrokinetic/ker/inflate_surf/inflate_surf_2x_ser_p2.c

This file was deleted.

Loading
Loading