diff --git a/mcstas-comps/examples/Tests_union/Test_inhomogenous_process/Test_inhomogenous_process.instr b/mcstas-comps/examples/Tests_union/Test_inhomogenous_process/Test_inhomogenous_process.instr index d4e5af60e..cc075934c 100755 --- a/mcstas-comps/examples/Tests_union/Test_inhomogenous_process/Test_inhomogenous_process.instr +++ b/mcstas-comps/examples/Tests_union/Test_inhomogenous_process/Test_inhomogenous_process.instr @@ -180,7 +180,7 @@ COMPONENT box_sample = Incoherent( zdepth=thick, sigma_inc = 5.08, sigma_abs = 5.08 -) WHEN (!strcmp((const char*)"thin", (const char*)sample)) +) WHEN (!str_comp((const char*)"thin", (const char*)sample)) AT (0, 0, 0) RELATIVE arm_sample ROTATED (0, 0, 0) RELATIVE arm_sample diff --git a/mcstas-comps/share/tinyexpr.c b/mcstas-comps/share/tinyexpr.c index 2a0ddfc4f..30bc63caf 100644 --- a/mcstas-comps/share/tinyexpr.c +++ b/mcstas-comps/share/tinyexpr.c @@ -164,7 +164,9 @@ static const te_variable functions[] = { {"abs", fabs, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {"acos", acos, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {"asin", asin, TE_FUNCTION1 | TE_FLAG_PURE, 0}, + #ifndef OPENACC {"atan", atan, TE_FUNCTION1 | TE_FLAG_PURE, 0}, + #endif {"atan2", atan2, TE_FUNCTION2 | TE_FLAG_PURE, 0}, {"ceil", ceil, TE_FUNCTION1 | TE_FLAG_PURE, 0}, {"cos", cos, TE_FUNCTION1 | TE_FLAG_PURE, 0},