-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvector_functions.hpp
More file actions
27 lines (21 loc) · 951 Bytes
/
Copy pathvector_functions.hpp
File metadata and controls
27 lines (21 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _VECTOR_FUNCTIONS_H_
#define _VECTOR_FUNCTIONS_H_
#include "mydefs.hpp"
#include "Cmpx.hpp"
#include "Vector3.hpp"
void divergence_3d( const Vector3 *V,
const int xdim, const int ydim, const int zdim,
const fptype dx, const fptype dy, const fptype dz,
fptype *S );
void gradient_3d( const fptype *S,
const int xdim, const int ydim, const int zdim,
const fptype dx, const fptype dy, const fptype dz,
const fptype constant_multiple,
Vector3 *V );
void add_exchange_field(
const Vector3 *M,
const fptype Ms, const fptype Aexch, const fptype mu,
const int xdim, const int ydim, const int zdim,
const fptype dx, const fptype dy, const fptype dz,
Vector3 *H );
#endif // #ifndef _VECTOR_FUNCTIONS_H_