Neko 1.99.10
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
mappings.hip File Reference
#include <device/device_config.h>
#include <device/hip/check.h>
#include <hip/hip_runtime.h>
#include "mapping_kernels.h"
Include dependency graph for mappings.hip:

Go to the source code of this file.

Functions

void hip_smooth_step (void *x, real *edge0, real *edge1, int *n)
void hip_step_function (void *x, real *edge, real *left, real *right, int *n)
void hip_permeability (void *x, real *k_0, real *k_1, real *q, int *n)

Function Documentation

◆ hip_permeability()

void hip_permeability ( void * x,
real * k_0,
real * k_1,
real * q,
int * n )

Fortran wrapper for the permeability mapping

Parameters
xarray to apply the permeability mapping on
k_0lower bound of the permeability
k_1upper bound of the permeability
qparameter
nsize of the array

Definition at line 90 of file mappings.hip.

Here is the call graph for this function:

◆ hip_smooth_step()

void hip_smooth_step ( void * x,
real * edge0,
real * edge1,
int * n )

Fortran wrapper for 2nd order smooth_step

Compute the smooth step function for a given array. t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0); return t^3 * (t * (6.0 * t - 15.0) + 10.0);

Definition at line 49 of file mappings.hip.

Here is the call graph for this function:

◆ hip_step_function()

void hip_step_function ( void * x,
real * edge,
real * left,
real * right,
int * n )

Fortran wrapper for step function

Compute the step function for a given array. if (x < edge) return left; else return right;

Parameters
xarray to apply the step function
edgethreshold value
leftvalue to return if x < edge
rightvalue to return if x >= edge
nsize of the array

Definition at line 72 of file mappings.hip.

Here is the call graph for this function: