Skip to content

Commit

Permalink
Add opt_unit and mu for upcoming yt-4.4
Browse files Browse the repository at this point in the history
Adding these two user param won't affect yt-4.2.
  • Loading branch information
cindytsai committed Aug 23, 2024
1 parent 7851789 commit ad2620f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/amr-example/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ int main(int argc, char* argv[]) {
yt_set_UserParameterInt("mhd", 1, &mhd);
const int srhd = 0;
yt_set_UserParameterInt("srhd", 1, &srhd);
const int opt_unit = 0;
yt_set_UserParameterInt("opt_unit", 1, &opt_unit);
const float mu = 0.6;
yt_set_UserParameterFloat("mu", 1, &mu);

// demo of some other parameters we can add
const int user_int = 1;
Expand Down

0 comments on commit ad2620f

Please sign in to comment.