Function `boundaryConditionsToTransform` is slow
For medium-sized problems, creating the transform via this function takes a significant amount of time. Using preallocatedAssemblyView instead of assemblyView should improve the performance of this function.