Fixed issue with initial velocity
The problem was that the number of values for velocity was numNodes and not 3*numNodes.
This commit is contained in:
parent
515e5c7744
commit
ba2b5bc6f3
1 changed files with 1 additions and 1 deletions
|
|
@ -530,7 +530,7 @@ MODULE moduleMeshInputVTU
|
|||
!Read the species velocity
|
||||
line = findLine(fileID, 'Name="Velocity')
|
||||
ALLOCATE(velocityBlock(1:3*numNodes))
|
||||
CALL readDataBlock(fileID, numNodes, velocityBlock)
|
||||
CALL readDataBlock(fileID, 3*numNodes, velocityBlock)
|
||||
ALLOCATE(velocity(1:numNodes, 1:3))
|
||||
DO n = 1, numNodes
|
||||
velocity(n, 1) = velocityBlock(3*(n-1)+1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue