Skip to content

Commit 0f815c3

Browse files
committed
Update gibbsseawater.pas
Fixed a bug in some functions where an integer value were returned instead of a double
1 parent 09a2946 commit 0f815c3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

gibbsseawater.pas

+11-11
Original file line numberDiff line numberDiff line change
@@ -2690,7 +2690,7 @@ function has inputs of Absolute Salinity and Conservative Temperature.
26902690
(48 term equation)
26912691
*)
26922692
// double gsw_sigma0(double sa, double ct);
2693-
function gsw_sigma0(sa, ct:double):integer; cdecl; external libgswteos;
2693+
function gsw_sigma0(sa, ct:double):double; cdecl; external libgswteos;
26942694

26952695

26962696
(*
@@ -2704,7 +2704,7 @@ function has inputs of Absolute Salinity and Conservative Temperature.
27042704
sigma1 : potential density anomaly with reference pressure of 1000
27052705
*)
27062706
// double gsw_sigma1(double sa, double ct);
2707-
function gsw_sigma1(sa, ct:double):integer; cdecl; external libgswteos;
2707+
function gsw_sigma1(sa, ct:double):double; cdecl; external libgswteos;
27082708

27092709

27102710
(*
@@ -2718,7 +2718,7 @@ function has inputs of Absolute Salinity and Conservative Temperature.
27182718
sigma2 : potential density anomaly with reference pressure of 2000
27192719
*)
27202720
// double gsw_sigma2(double sa, double ct);
2721-
function gsw_sigma2(sa, ct:double):integer; cdecl; external libgswteos;
2721+
function gsw_sigma2(sa, ct:double):double; cdecl; external libgswteos;
27222722

27232723

27242724
(*
@@ -2732,7 +2732,7 @@ function has inputs of Absolute Salinity and Conservative Temperature.
27322732
sigma3 : potential density anomaly with reference pressure of 3000
27332733
*)
27342734
// double gsw_sigma3(double sa, double ct);
2735-
function gsw_sigma3(sa, ct:double):integer; cdecl; external libgswteos;
2735+
function gsw_sigma3(sa, ct:double):double; cdecl; external libgswteos;
27362736

27372737

27382738
(*
@@ -2746,7 +2746,7 @@ function has inputs of Absolute Salinity and Conservative Temperature.
27462746
sigma4 : potential density anomaly with reference pressure of 4000
27472747
*)
27482748
// double gsw_sigma4(double sa, double ct);
2749-
function gsw_sigma4(sa, ct:double):integer; cdecl; external libgswteos;
2749+
function gsw_sigma4(sa, ct:double):double; cdecl; external libgswteos;
27502750

27512751

27522752
(*
@@ -2762,7 +2762,7 @@ function gsw_sigma4(sa, ct:double):integer; cdecl; external libgswteos;
27622762
sound_speed : speed of sound in seawater [m/s]
27632763
*)
27642764
// double gsw_sound_speed(double sa, double ct, double p);
2765-
function gsw_sound_speed(sa, ct, p:double):integer; cdecl; external libgswteos;
2765+
function gsw_sound_speed(sa, ct, p:double):double; cdecl; external libgswteos;
27662766

27672767

27682768
(*
@@ -2775,7 +2775,7 @@ function gsw_sound_speed(sa, ct, p:double):integer; cdecl; external libgswteos;
27752775
sound_speed_ice = compression speed of sound in ice [ m/s ]
27762776
*)
27772777
// double gsw_sound_speed_ice(double t, double p);
2778-
function gsw_sound_speed_ice(t, p:double):integer; cdecl; external libgswteos;
2778+
function gsw_sound_speed_ice(t, p:double):double; cdecl; external libgswteos;
27792779

27802780

27812781
(*
@@ -2788,7 +2788,7 @@ function gsw_sound_speed_ice(t, p:double):integer; cdecl; external libgswteos;
27882788
gsw_sound_speed_t_exact : sound speed [m/s]
27892789
*)
27902790
// double gsw_sound_speed_t_exact(double sa, double t, double p);
2791-
function gsw_sound_speed_t_exact(sa, t, p:double):integer; cdecl; external libgswteos;
2791+
function gsw_sound_speed_t_exact(sa, t, p:double):double; cdecl; external libgswteos;
27922792

27932793

27942794
(*
@@ -2822,7 +2822,7 @@ function gsw_sound_speed_t_exact(sa, t, p:double):integer; cdecl; external libg
28222822
specvol_anom : specific volume anomaly of seawater
28232823
*)
28242824
// double gsw_specvol_anom_standard(double sa, double ct, double p);
2825-
function gsw_specvol_anom_standard(sa, ct, p:double):integer; cdecl; external libgswteos;
2825+
function gsw_specvol_anom_standard(sa, ct, p:double):double; cdecl; external libgswteos;
28262826

28272827

28282828
(*
@@ -2838,7 +2838,7 @@ function gsw_specvol_anom_standard(sa, ct, p:double):integer; cdecl; external l
28382838
specvol: specific volume [m^3/kg]
28392839
*)
28402840
// double gsw_specvol(double sa, double ct, double p);
2841-
function gsw_specvol(sa, ct, p:double):integer; cdecl; external libgswteos;
2841+
function gsw_specvol(sa, ct, p:double):double; cdecl; external libgswteos;
28422842

28432843

28442844
(*
@@ -2889,7 +2889,7 @@ function gsw_specvol(sa, ct, p:double):integer; cdecl; external libgswteos;
28892889
specvol_ice = specific volume [ m^3/kg ]
28902890
*)
28912891
// double gsw_specvol_ice(double t, double p);
2892-
function gsw_specvol_ice(t, p:double):integer; cdecl; external libgswteos;
2892+
function gsw_specvol_ice(t, p:double):double; cdecl; external libgswteos;
28932893

28942894

28952895
(*

0 commit comments

Comments
 (0)