Made the linear algebra functions used in forcing.cc static to avoid collisions with the functions defined in math_utils.h
This commit is contained in:
@@ -37,7 +37,7 @@ get_random_number_01()
|
||||
return AcReal(rand()) / AcReal(RAND_MAX);
|
||||
}
|
||||
|
||||
AcReal3
|
||||
static AcReal3
|
||||
cross(const AcReal3& a, const AcReal3& b)
|
||||
{
|
||||
AcReal3 c;
|
||||
@@ -49,13 +49,13 @@ cross(const AcReal3& a, const AcReal3& b)
|
||||
return c;
|
||||
}
|
||||
|
||||
AcReal
|
||||
static AcReal
|
||||
dot(const AcReal3& a, const AcReal3& b)
|
||||
{
|
||||
return a.x * b.x + a.y * b.y + a.z * b.z;
|
||||
}
|
||||
|
||||
AcReal3
|
||||
static AcReal3
|
||||
vec_norm(const AcReal3& a)
|
||||
{
|
||||
AcReal3 c;
|
||||
@@ -68,7 +68,7 @@ vec_norm(const AcReal3& a)
|
||||
return c;
|
||||
}
|
||||
|
||||
AcReal3
|
||||
static AcReal3
|
||||
vec_multi_scal(const AcReal scal, const AcReal3& a)
|
||||
{
|
||||
AcReal3 c;
|
||||
|
@@ -32,14 +32,6 @@
|
||||
|
||||
AcReal get_random_number_01();
|
||||
|
||||
// AcReal3 cross(const AcReal3& a, const AcReal3& b);
|
||||
|
||||
// AcReal dot(const AcReal3& a, const AcReal3& b);
|
||||
|
||||
// AcReal3 vec_norm(const AcReal3& a);
|
||||
|
||||
// AcReal3 vec_multi_scal(const AcReal scal, const AcReal3& a);
|
||||
|
||||
AcReal3 helical_forcing_k_generator(const AcReal kmax, const AcReal kmin);
|
||||
|
||||
void helical_forcing_e_generator(AcReal3* e_force, const AcReal3 k_force);
|
||||
|
Reference in New Issue
Block a user