| tgrain.c: rename functions so all start with grain_ - granular - granular dynamics simulation |
| git clone git://src.adamsgaard.dk/granular |
| Log |
| Files |
| Refs |
| README |
| LICENSE |
| --- |
| commit 88189a36b1fb2bef6d4627b3618a30886bf8f7c6 |
| parent 0ced4ee84ae554d75646ebbaa76cc31c2397cfb3 |
| Author: Anders Damsgaard |
| Date: Thu, 18 Mar 2021 10:06:57 +0100
grain.c: rename functions so all start with grain_
Diffstat:
M grain.c | 4 ++--
M grain.h | 11 +++++++----
2 files changed, 9 insertions(+), 6 deletions(-)
--- |
| diff --git a/grain.c b/grain.c |
| t@@ -96,7 +96,7 @@ print_grain(FILE *stream, const struct grain *g)
}
int
-check_grain_values(const struct grain *g)
+grain_check_values(const struct grain *g)
{
size_t i;
int status = 0;
t@@ -169,7 +169,7 @@ grain_moment_of_inertia(const struct grain *g)
}
void
-zero_grain_kinematics(struct grain *g)
+grain_zero_kinematics(struct grain *g)
{
size_t i;
|
| diff --git a/grain.h b/grain.h |
| t@@ -33,13 +33,16 @@ struct grain {
size_t color;
};
-void init_grain(struct grain *g);
-void print_grain(FILE *stream, const struct grain *g);
-int check_grain_values(const struct grain *g);
+void grain_init(struct grain *g);
+
+void grain_print(FILE *stream, const struct grain *g);
+
+int grain_check_values(const struct grain *g);
+
double grain_volume(const struct grain *g);
double grain_mass(const struct grain *g);
double grain_moment_of_inertia(const struct grain *g);
-void zero_grain_kinematics(struct grain *g);
+void grain_zero_kinematics(struct grain *g);
double grain_translational_kinetic_energy(const struct grain *g);
double grain_rotational_kinetic_energy(const struct grain *g);
double grain_kinetic_energy(const struct grain *g); |