Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SPINS_main
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Donovan Allum
SPINS_main
Commits
f2834d83
Commit
f2834d83
authored
2 years ago
by
Donovan Allum
Browse files
Options
Downloads
Patches
Plain Diff
Updating the baroclinic vorticity calculation in derivatives.cpp to include a factor of 1/rho_0
parent
2ec830cc
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/cases/derivatives/derivatives.cpp
+3
-3
3 additions, 3 deletions
src/cases/derivatives/derivatives.cpp
with
3 additions
and
3 deletions
src/cases/derivatives/derivatives.cpp
+
3
−
3
View file @
f2834d83
...
...
@@ -221,19 +221,19 @@ class userControl : public BaseCase {
// Store Temperature in T, it is free
init_tracer_restart
(
"t"
,
u
);
compute_baroclinic_vort
(
deriv_var
,
*
temp4
,
u
,
gradient_op
,
grid_type
,
v_exist
);
deriv_var
=
deriv_var
*
g
;
deriv_var
=
deriv_var
*
g
/
rho_0
;
write_array
(
deriv_var
,
"bar"
,
plotnum
);
if
(
master
())
fprintf
(
stdout
,
"Completed the write for bar.%d
\n
"
,
plotnum
);
if
(
v_exist
)
{
compute_baroclinic_vort_x
(
deriv_var
,
u
,
gradient_op
,
grid_type
);
deriv_var
=
deriv_var
*
g
;
deriv_var
=
deriv_var
*
g
/
rho_0
;
write_array
(
deriv_var
,
"barx"
,
plotnum
);
if
(
master
())
fprintf
(
stdout
,
"Completed the write for barx.%d
\n
"
,
plotnum
);
}
compute_baroclinic_vort_y
(
deriv_var
,
u
,
gradient_op
,
grid_type
);
deriv_var
=
deriv_var
*
g
;
deriv_var
=
deriv_var
*
g
/
rho_0
;
write_array
(
deriv_var
,
"bary"
,
plotnum
);
if
(
master
())
fprintf
(
stdout
,
"Completed the write for bary.%d
\n
"
,
plotnum
);
...
...
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