Added alias svan for specific_volume_anomaly function
This commit is contained in:
parent
ec7e806fe3
commit
f2bc090609
|
@ -37,4 +37,7 @@ double potential_temperature(double salinity, double temperature,
|
|||
double pressure, double reference_pressure);
|
||||
double sound_speed(double salinity, double temperature, double pressure);
|
||||
|
||||
#define svan(salinity, temperature, pressure, sigma) \
|
||||
specific_volume_anomaly(salinity, temperature, pressure, sigma)
|
||||
|
||||
#endif /* OCEANOGRAPHY_H */
|
||||
|
|
|
@ -77,6 +77,10 @@ START_TEST(test_specific_volume_anomaly)
|
|||
ck_assert(cmp_double(specific_volume_anomaly(40, 40, 10000, &sigma),
|
||||
981.301907));
|
||||
ck_assert(cmp_double(sigma, 59.820375));
|
||||
|
||||
/* Test again the first case using the function alias svan. */
|
||||
ck_assert(cmp_double(svan(0, 0, 0, &sigma), 2749.539368));
|
||||
ck_assert(cmp_double(sigma, -0.1574));
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
Loading…
Reference in a new issue