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

Open file repeatedly in gen_be_stage4.exe #2

Open
HappyKian opened this issue Aug 19, 2019 · 0 comments
Open

Open file repeatedly in gen_be_stage4.exe #2

HappyKian opened this issue Aug 19, 2019 · 0 comments

Comments

@HappyKian
Copy link

When use_global_bin=.true. and num_bins2d .gt. 1, the lines 560 to 562

                 filename = 'sl_print.b'//ci//'.'//trim(variable)
                 open( unit=ounit, file=trim(filename), form='formatted', &
                 action='write', access='sequential', status='replace')

will be executed. In lines 507-509, there are the same codes as above, and there is not a close statement between them, which means the file filename will be opened more than once. This may cause an error in some compiler, such as ifort 17.0.5. According to the context, the code from lines 560 to 562 may be able to be deleted.

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

1 participant