Skip to content

Commit 44006c1

Browse files
committed
missed routine
1 parent fc25a7a commit 44006c1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/LaMEM_io.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,11 +1016,15 @@ function create_partitioning_file(LaMEM_input::String,NumProc::Int64; LaMEM_dir:
10161016
end
10171017

10181018
"""
1019-
X,Y,Z = coordinate_grids(Data::LaMEM_grid)
1019+
X,Y,Z = coordinate_grids(Data::LaMEM_grid; cell=false)
10201020
10211021
Returns 3D coordinate arrays
10221022
"""
1023-
function coordinate_grids(Data::LaMEM_grid)
1024-
1025-
return Data.X, Data.Y, Data.Z
1023+
function coordinate_grids(Data::LaMEM_grid; cell=false)
1024+
X,Y,Z = Data.X, Data.Y, Data.Z
1025+
if cell
1026+
X,Y,Z = average_q1(X),average_q1(Y), average_q1(Z)
1027+
end
1028+
1029+
return X,Y,Z
10261030
end

0 commit comments

Comments
 (0)