Commit 4ebfdd79 authored by Chris Cantwell's avatar Chris Cantwell

Fixed compile error in FieldToField on CX1. Requires parentheses around

boost::math::isnan.
parent 69263e7f
......@@ -673,7 +673,7 @@ cout<<"x="<<coords[0]<<" y="<<coords[1]<<endl;
}
//cout<<r<<"new val="<<field1->UpdatePhys()[r]<<endl;
if( boost::math::isnan(field1->UpdatePhys()[r]) )
if( (boost::math::isnan)(field1->UpdatePhys()[r]) )
{
cout<<"x="<<x1[r]<<" y="<<y1[r]<<" offset="<<offset<<" elmtid="<<elmtid<<endl;
cout<<"new val="<<field1->UpdatePhys()[r]<<endl;
......@@ -704,7 +704,7 @@ cout<<"new val="<<field1->UpdatePhys()[r]<<endl;
offset = field0->GetPlane(0)->GetPhys_Offset(elmtid);
field1->GetPlane(0)->UpdatePhys()[r] = field0->GetPlane(0)->GetExp(elmtid)->
PhysEvaluate(coords, field0->GetPlane(0)->GetPhys() +offset);
if( boost::math::isnan(field1->GetPlane(0)->UpdatePhys()[r]) )
if( (boost::math::isnan)(field1->GetPlane(0)->UpdatePhys()[r]) )
{
cout<<"x="<<x1[r]<<" y="<<y1[r]<<" offset="<<offset<<" elmtid="<<elmtid<<endl;
cout<<"new val="<<field1->GetPlane(0)->UpdatePhys()[r]<<endl;
......@@ -724,7 +724,7 @@ cout<<"new val="<<field1->GetPlane(0)->UpdatePhys()[r]<<endl;
offset = field0->GetPlane(1)->GetPhys_Offset(elmtid);
field1->GetPlane(1)->UpdatePhys()[r] = field0->GetPlane(1)->GetExp(elmtid)->
PhysEvaluate(coords, field0->GetPlane(1)->GetPhys() +offset);
if( boost::math::isnan(field1->GetPlane(1)->UpdatePhys()[r]) )
if( (boost::math::isnan)(field1->GetPlane(1)->UpdatePhys()[r]) )
{
cout<<"x="<<x1[r]<<" y="<<y1[r]<<" offset="<<offset<<" elmtid="<<elmtid<<endl;
cout<<"new val="<<field1->GetPlane(1)->UpdatePhys()[r]<<endl;
......
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