Skip to content

Commit

Permalink
Add density-dependent gravity
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown committed May 27, 2011
1 parent f6dbee1 commit 9a6d48f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/fs/tests/vht.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static dErr VHTCaseSetFromOptions(VHTCase scase)
err = dOptionsRealUnits("-rheo_T0","Reference temperature (corresponds to enthalpy=0)","",u->Temperature,rheo->T0,&rheo->T0,NULL);dCHK(err);
err = dOptionsRealUnits("-rheo_T3","Triple point temperature","",u->Temperature,rheo->T3,&rheo->T3,NULL);dCHK(err);
err = dOptionsRealUnits("-rheo_splice_delta","Characteristic width of split","",u->Energy,rheo->splice_delta,&rheo->splice_delta,NULL);dCHK(err);
err = dOptionsRealUnits("-gravity","Gravity","",u->Acceleration,scase->gravity,&scase->gravity,NULL);dCHK(err);
err = dOptionsRealUnits("-rheo_gravity","Gravity in z-direction (probably negative)","",u->Acceleration,rheo->gravity,&rheo->gravity,NULL);dCHK(err);
if (scase->setfromoptions) {err = (*scase->setfromoptions)(scase);dCHK(err);}
} err = PetscOptionsEnd();dCHK(err);
dFunctionReturn(0);
Expand Down
1 change: 0 additions & 1 deletion src/fs/tests/vhtimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ struct _n_VHTCase {
dErr (*setfromoptions)(VHTCase);
dErr (*destroy)(VHTCase);
struct VHTRheology rheo;
dReal gravity;
dReal bbox[3][2];
dBool reality; // The "solution" is just a guess or boundary conditions
dUnits units;
Expand Down

0 comments on commit 9a6d48f

Please sign in to comment.