Skip to content

Commit 6bd7841

Browse files
Remove inline declaration
1 parent 7ad0d4d commit 6bd7841

File tree

1 file changed

+4
-3
lines changed
  • MidasCivil_Engine/Convert/ToBHoM/Elements

1 file changed

+4
-3
lines changed

MidasCivil_Engine/Convert/ToBHoM/Elements/FEMesh.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ public static FEMesh ToBHoMFEMesh(
1717
{
1818
List<string> delimitted = feMesh.Split(',').ToList();
1919

20-
bhomNodes.TryGetValue(delimitted[4].Trim(), out Node n1);
21-
bhomNodes.TryGetValue(delimitted[5].Trim(), out Node n2);
22-
bhomNodes.TryGetValue(delimitted[6].Trim(), out Node n3);
20+
Node n1; Node n2; Node n3;
21+
bhomNodes.TryGetValue(delimitted[4].Trim(), out n1);
22+
bhomNodes.TryGetValue(delimitted[5].Trim(), out n2);
23+
bhomNodes.TryGetValue(delimitted[6].Trim(), out n3);
2324

2425
ISurfaceProperty bhomSurfaceProperty = null;
2526

0 commit comments

Comments
 (0)