Skip to content
Snippets Groups Projects
Commit c53b0c40 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

i don't complain about different units if one of them is ""

parent 0f5ae342
No related branches found
No related tags found
No related merge requests found
......@@ -352,7 +352,9 @@ CCoord CFunc::coord(class CCoord *co1, class CCoord *co2) const
if (s=="+" || s=="-") {
co.name = co1->name + s + co2->name;
if (co2->unit != co1->unit) {
if ( co1->unit=="" )
co.unit = "";
else if ( co2->unit!="" && co2->unit != co1->unit) {
cout << "? different units " << co1->unit << " and " <<
co2->unit << " in additive operation\n";
co.unit = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment