Skip to content

Commit ce0412b

Browse files
committed
Added the "norm" component for vec3d log variables.
1 parent 20d046d commit ce0412b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

FECore/FELogData.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ int Vec3dLogTraits::ComponentIndex(const std::string& c)
3636
if (c == "x") return 0;
3737
if (c == "y") return 1;
3838
if (c == "z") return 2;
39+
if (c == "norm") return 3;
3940
assert(false);
4041
return -1;
4142
}
@@ -47,6 +48,7 @@ double Vec3dLogTraits::Component(const vec3d& v, int i)
4748
case 0: return v.x;
4849
case 1: return v.y;
4950
case 2: return v.z;
51+
case 3: return v.norm();
5052
default:
5153
assert(false);
5254
return 0.0;

0 commit comments

Comments
 (0)