Hi Filipe,
What version of Nek5000 are you using?
Can you check whether your code is newer than this commit?
Or, open reader_re2.f, see if "#v004" is in the subroutine "read_re2_hdr".
The older header (v002) uses "i9i3i9" but the newer one (v004) has "i16i3i16". I think that's why nek reads nelgt=0 from the header:
12345123456789123123456789
Two solutions if it's the case:
a. Use the latest Nek5000 from GitHub master
b. Manually change the first 80 characters of your re2 to this format (and keep the rest the same):
0 1 2 3 4 5 6 7 8|
12345678901234567890123456789012345678901234567890123456789012345678901234567890|
12345123456789123123456789
#v002 465 2 465 hdr |<binary>
You should see the exact same size from "ls -ltra *re2" before and after the modification.
Also, "head -c 81 *re2" will print binary code at 81st character.
Hope this helps,
Yu-Hsiang
--