... | @@ -153,7 +153,7 @@ Function computes curl of 3D real vector $`(f_x, f_y, f_z)`$: $`\nabla \times \v |
... | @@ -153,7 +153,7 @@ Function computes curl of 3D real vector $`(f_x, f_y, f_z)`$: $`\nabla \times \v |
|
* `curl_z` - pointer to output $`z`$-component function which is array of size [nx\*ny\*nz]
|
|
* `curl_z` - pointer to output $`z`$-component function which is array of size [nx\*ny\*nz]
|
|
* `return` - error code
|
|
* `return` - error code
|
|
|
|
|
|
# 2D real derivatives:
|
|
# 2D derivatives:
|
|
## Basic 2D derivative function:
|
|
## Basic 2D derivative function:
|
|
```c
|
|
```c
|
|
int wderiv_derivative_2d_r(int direction, int n, double *f, double *deriv)
|
|
int wderiv_derivative_2d_r(int direction, int n, double *f, double *deriv)
|
... | @@ -270,7 +270,7 @@ Function divergence of 2D real function $`f(x,y)`$: $`\nabla \cdot f = \frac{df} |
... | @@ -270,7 +270,7 @@ Function divergence of 2D real function $`f(x,y)`$: $`\nabla \cdot f = \frac{df} |
|
|
|
|
|
`divergence` can be the same pointer as `f`, then result overwrites input.
|
|
`divergence` can be the same pointer as `f`, then result overwrites input.
|
|
|
|
|
|
# 1D real derivatives:
|
|
# 1D derivatives:
|
|
## Basic 1D derivative function:
|
|
## Basic 1D derivative function:
|
|
```c
|
|
```c
|
|
int wderiv_derivative_1d_r(int direction, int n, double *f, double *deriv)
|
|
int wderiv_derivative_1d_r(int direction, int n, double *f, double *deriv)
|
... | | ... | |