File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/analysis/compute_quantities Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1101,6 +1101,15 @@ function computePARotationMatrix(
11011101 $(components) " )
11021102 )
11031103
1104+ if any (isempty, [positions, velocities, masses])
1105+ (
1106+ logging[] &&
1107+ @info (" computePARotationMatrix: The positions, masses or velocities are empty. \
1108+ I will return the identity matrix" )
1109+ )
1110+ return I
1111+ end
1112+
11041113 elseif component ∈ snapshotTypes (data_dict)
11051114
11061115 positions = data_dict[component][" POS " ]
@@ -1111,7 +1120,7 @@ function computePARotationMatrix(
11111120 (
11121121 logging[] &&
11131122 @info (" computePARotationMatrix: The positions, masses or velocities for component \
1114- :$(component) are missing . I will return the identity matrix" )
1123+ :$(component) are empty . I will return the identity matrix" )
11151124 )
11161125 return I
11171126 end
You can’t perform that action at this time.
0 commit comments