Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
e45b3800
Commit
e45b3800
authored
10 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Derivepar.c: include constants.h
parent
7d75d20f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Derivepar.c
+4
-17
4 additions, 17 deletions
src/Derivepar.c
with
4 additions
and
17 deletions
src/Derivepar.c
+
4
−
17
View file @
e45b3800
...
...
@@ -28,23 +28,7 @@
#include
"pstream.h"
#include
"after_vertint.h"
#include
"stdnametable.h"
#define C_RKBOL (1.380658e-23)
/* Boltzmann constant in J/K */
#define C_RNAVO (6.0221367e+23)
/* Avogadro constant in 1/mol */
#define C_RMD (28.9644)
/* molecular weight of dry air */
#define C_RMV (18.0153)
/* molecular weight of water vapor */
#define C_R (C_RKBOL * C_RNAVO)
#define C_RV (1000. * C_R / C_RMV)
#define C_EARTH_GRAV (9.80665)
#define C_RKBOL (1.380658e-23)
/* Boltzmann constant in J/K */
#define C_RNAVO (6.0221367e+23)
/* Avogadro constant in 1/mol */
#define C_RMD (28.9644)
/* molecular weight of dry air */
#define C_R (C_RKBOL * C_RNAVO)
#define C_EARTH_RD (1000. * C_R / C_RMD)
static
double
Grav
=
C_EARTH_GRAV
;
static
double
RD
=
C_EARTH_RD
;
#include
"constants.h"
static
void
MakeGeopotHeight
(
double
*
geop
,
double
*
gt
,
double
*
gq
,
double
*
ph
,
int
nhor
,
int
nlev
)
...
...
@@ -54,6 +38,9 @@ void MakeGeopotHeight(double *geop, double* gt, double *gq, double *ph, int nhor
double
zrg
;
double
z2log2
;
double
*
geopl
,
*
gtl
,
*
gql
,
*
phl
;
double
Grav
=
C_EARTH_GRAV
;
double
RD
=
C_EARTH_RD
;
z2log2
=
2
.
0
*
log
(
2
.
0
);
vtmp
=
(
C_RV
/
RD
)
-
1
.
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment