fixed init generation being really slow

This commit is contained in:
2025-10-26 19:14:50 -07:00
parent b82c87520a
commit fdbd90afdf
29 changed files with 290 additions and 137 deletions

View File

@@ -0,0 +1,10 @@
function mustBeGeometry(geometry)
validGeometries = ["rectangularPrism";];
if isa(geometry, 'cell')
for ii = 1:size(geometry, 1)
assert(isa(geometry{ii}, validGeometries), "Geometry in index %d is not a valid geometry class", ii);
end
else
assert(isa(geometry, validGeometries), "Geometry is not a valid geometry class");
end
end