Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quadruple precision #3

Open
sudhanvalalit opened this issue Dec 12, 2023 · 2 comments
Open

Quadruple precision #3

sudhanvalalit opened this issue Dec 12, 2023 · 2 comments

Comments

@sudhanvalalit
Copy link

I tried to convert the code from double precision to quadruple precision, and the code compiles well. However, while execution, it fails to read nets3 and nets4 files. Is there a proper way to read/write binary datafiles in quadruple precision?

At line 621 of file xnet_data.f90
Fortran runtime error: I/O past end of record on unformatted file

Error termination. Backtrace:
#0 0x7f6c94688d59 in read_block_direct
at /usr/src/debug/gcc/gcc/libgfortran/io/transfer.c:789
#1 0x7f6c94688d59 in unformatted_read
at /usr/src/debug/gcc/gcc/libgfortran/io/transfer.c:1129
#2 0x55f18526bc8e in __reaction_data_MOD_read_reaction_data
at /home/sudhanvalalit/Documents/XNet/src/xnet_data.f90:621
#3 0x55f18535e081 in net
at /home/sudhanvalalit/Documents/XNet/src/net.f90:109
#4 0x55f18525449e in main
at /home/sudhanvalalit/Documents/XNet/src/net.f90:18

@jaharris87
Copy link
Collaborator

Your best bet is probably to read/write nets3 and nets4 as double precision and then convert to quad.
I don't know how well quad-precision is supported by Fortran I/O.

@sudhanvalalit
Copy link
Author

Thanks for a quick response, let me try that and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants