mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove bogus inline modifier
gas_density() was declared extern in the header and defined inline in the translation unit. I didn't even realize that this oxymoron is valid. Remove inline and an Java-style function definition. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
bff80cf462
commit
ce065968f0
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,8 @@ double isothermal_pressure(struct gasmix gas, double p1, int volume1, int volume
|
|||
return p_ideal * gas_compressibility_factor(gas, p_ideal);
|
||||
}
|
||||
|
||||
inline double gas_density(struct gasmix gas, int pressure) {
|
||||
double gas_density(struct gasmix gas, int pressure)
|
||||
{
|
||||
int density = gas.he.permille * HE_DENSITY + gas.o2.permille * O2_DENSITY + (1000 - gas.he.permille - gas.o2.permille) * N2_DENSITY;
|
||||
|
||||
return density * (double) pressure / gas_compressibility_factor(gas, pressure / 1000.0) / SURFACE_PRESSURE / 1000000.0;
|
||||
|
|
Loading…
Add table
Reference in a new issue