Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 0 additions & 19 deletions gyrokinetic/zero/loss_cone_mask_gyrokinetic.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@
// = 0.5*mass*pow(vpar,2)/(bmag_max-bmag[0]) + charge*(phi-phi_m)/(bmag_max-bmag[0]);
//

// Identity comp to phys coord mapping, for when user doesn't provide a map.
static inline void
c2p_pos_identity(const double *xcomp, double *xphys, void *ctx)
{
struct gkyl_loss_cone_mask_gyrokinetic *up = ctx;
int cdim = up->cdim;
for (int d=0; d<cdim; d++) xphys[d] = xcomp[d];
}

// create range to loop over quadrature points.
static inline struct gkyl_range
get_qrange(int cdim, int dim, int num_quad, int num_quad_v, bool *is_vdim_p2)
Expand Down Expand Up @@ -217,15 +208,6 @@ gkyl_loss_cone_mask_gyrokinetic_inew(const struct gkyl_loss_cone_mask_gyrokineti
}
up->use_gpu = inp->use_gpu;

if (inp->c2p_pos_func == 0) {
up->c2p_pos = c2p_pos_identity;
up->c2p_pos_ctx = up;
}
else {
up->c2p_pos = inp->c2p_pos_func;
up->c2p_pos_ctx = inp->c2p_pos_func_ctx;
}

// Initialize data needed for conf-space quadrature.
up->tot_quad_conf = init_quad_values(up->cdim, inp->conf_basis, inp->qtype, num_quad,
&up->ordinates_conf, &up->weights_conf, &up->basis_at_ords_conf, false);
Expand Down Expand Up @@ -437,7 +419,6 @@ gkyl_loss_cone_mask_gyrokinetic_advance(gkyl_loss_cone_mask_gyrokinetic *up,
// Convert comp position coordinate to phys pos coord.
gkyl_rect_grid_cell_center(up->grid_phase, pidx, xc);
log_to_comp(up->cdim, xcomp_d, up->grid_phase->dx, xc, xmu);
up->c2p_pos(xmu, xmu, up->c2p_pos_ctx);

// Convert comp velocity coordinate to phys velocity coord.
const struct gkyl_velocity_map *gvm = up->vel_map;
Expand Down
2 changes: 0 additions & 2 deletions gyrokinetic/zero/loss_cone_mask_gyrokinetic_cu.cu
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ gkyl_loss_cone_mask_gyrokinetic_ker(struct gkyl_rect_grid grid_phase,

// Convert comp position coordinate to phys pos coord.
log_to_comp(cdim, xcomp_d, grid_phase.dx, xc, xmu);
// up->c2p_pos(xmu, xmu, up->c2p_pos_ctx);

// Convert comp velocity coordinate to phys velocity coord.
double xcomp[1];
Expand Down Expand Up @@ -213,7 +212,6 @@ gkyl_loss_cone_mask_gyrokinetic_quad_ker(struct gkyl_rect_grid grid_phase,
// Convert comp position coordinate to phys pos coord.
gkyl_rect_grid_cell_center(&grid_phase, pidx, xc);
log_to_comp(cdim, xcomp_d, grid_phase.dx, xc, xmu);
// up->c2p_pos(xmu, xmu, up->c2p_pos_ctx);

// Convert comp velocity coordinate to phys velocity coord.
double xcomp[1];
Expand Down
Loading