You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file seems to be organized such that the North-West corner of the domain corresponds to index (1,1) in the 2D arrays read in this file, while the lower resolution file it is the South-West corner of the domain that corresponds to index (1,1)
this is the routine
I would expect that the loop at the end of the routine reverts the rows of the 2D arrays so they are compatible with the low resolution ones
for example if we have a matrix (11,12,13,14)
(21,22,23,24)
(31,32,33,34)
I would expect to transform it to (31,32,33,34)
(21,22,23,24)
(11,12,13,14)
while in fact this loop creates the following matrix (13,12,11,0)
(23,22,21,0)
(33,32,31,0)
If I correct the code is swaping columns and not rows
a correct version of the code would be
jj = jxrt
do j = 1, jxrt
inv(j,:) = inv_tmp(jj:,)
jj = jxrt - j
end do
I am not sufficiently acquainted with the code and I would be grateful if you could help in determining if this is a bug or if I am mistaken
best
jac
Your Environment
Version of the code used: 5.2
Operating System and version: Windows 10
Compiler and version: Intel visual Fortran , Version 19
Other relevant information:
The text was updated successfully, but these errors were encountered:
This file seems to be organized such that the North-West corner of the domain corresponds to index (1,1) in the 2D arrays read in this file, while the lower resolution file it is the South-West corner of the domain that corresponds to index (1,1)
this is the routine
Expected Behavior
I would expect that the loop at the end of the routine reverts the rows of the 2D arrays so they are compatible with the low resolution ones
for example if we have a matrix (11,12,13,14)
(21,22,23,24)
(31,32,33,34)
I would expect to transform it to (31,32,33,34)
(21,22,23,24)
(11,12,13,14)
while in fact this loop creates the following matrix (13,12,11,0)
(23,22,21,0)
(33,32,31,0)
If I correct the code is swaping columns and not rows
a correct version of the code would be
I am not sufficiently acquainted with the code and I would be grateful if you could help in determining if this is a bug or if I am mistaken
best
jac
Your Environment
The text was updated successfully, but these errors were encountered: