... | ... | @@ -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]
|
|
|
* `return` - error code
|
|
|
|
|
|
# 2D real derivatives:
|
|
|
# 2D derivatives:
|
|
|
## Basic 2D derivative function:
|
|
|
```c
|
|
|
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} |
|
|
|
|
|
`divergence` can be the same pointer as `f`, then result overwrites input.
|
|
|
|
|
|
# 1D real derivatives:
|
|
|
# 1D derivatives:
|
|
|
## Basic 1D derivative function:
|
|
|
```c
|
|
|
int wderiv_derivative_1d_r(int direction, int n, double *f, double *deriv)
|
... | ... | |