Commit 7cd77983 authored by Andrew J. Burns (Cont's avatar Andrew J. Burns (Cont

fix for polymorphism on std::log for pgi compiler

parent 45484692
......@@ -132,7 +132,7 @@ int main(int, char **)
printf("LOG(2) = %lf\n", std::log((double)2));
printf("array contains: %s\n", XdmfFunction::evaluateExpression("LOG(C)", testVals)->getValuesString().c_str());
assert(strcmp(XdmfFunction::evaluateExpression("LOG(C)", testVals)->getValuesString().c_str(), "0.69314718055994529") == 0);
printf("LOG(2, 4) = %lf\n", std::log((double)2)/std::log(4));
printf("LOG(2, 4) = %lf\n", std::log((double)2)/std::log((double)4));
printf("array contains: %s\n", XdmfFunction::evaluateExpression("LOG(C, 4)", testVals)->getValuesString().c_str());
assert(strcmp(XdmfFunction::evaluateExpression("LOG(C, 4)", testVals)->getValuesString().c_str(), "0.5") == 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment