From ad2620fd079ceb15eaba402f0710ec21df48a4fb Mon Sep 17 00:00:00 2001 From: cindytsai Date: Fri, 23 Aug 2024 12:40:20 -0500 Subject: [PATCH] Add `opt_unit` and `mu` for upcoming yt-4.4 Adding these two user param won't affect yt-4.2. --- example/amr-example/example.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/amr-example/example.cpp b/example/amr-example/example.cpp index cc48e7ea..8d352a93 100644 --- a/example/amr-example/example.cpp +++ b/example/amr-example/example.cpp @@ -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;