Neko 0.9.99
A portable framework for high-order spectral element flow simulations
|
#include <CL/cl.h>
#include <device/device_config.h>
#include <device/opencl/check.h>
#include <device/opencl/jit.h>
#include <device/opencl/prgm_lib.h>
#include <stdio.h>
#include <stdlib.h>
#include "filter_kernels.cl.h"
Go to the source code of this file.
Functions | |
void | opencl_smooth_step (void *x, real *edge0, real *edge1, int *n) |
void | opencl_step_function (void *x, real *edge, real *left, real *right, int *n) |
void | opencl_permeability (void *x, real *k_0, real *k_1, real *q, int *n) |
Fortran wrapper for step function
Compute the step function for a given array. if (x < edge) return left; else return right;
x | array to apply the step function |
edge | threshold value |
left | value to return if x < edge |
right | value to return if x >= edge |
n | size of the array |
Definition at line 92 of file filters.c.