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

Removal of Write(6,*) #575

Merged
merged 4 commits into from
Aug 21, 2024
Merged

Removal of Write(6,*) #575

merged 4 commits into from
Aug 21, 2024

Conversation

feathern
Copy link
Contributor

@feathern feathern commented Aug 20, 2024

This PR removes all calls to write(6,*) in the code that can be encountered during the course of a normal simulation. Instead, stdout%print is used, which is redirected to a log file, if desired. This change prevents a situation where some error message could be written out to standard out, whereas others would appear in the log file. Note that several references to write(6,*) have been retained. These are not encountered during normal usage of the code and can still be helpful for debugging. In addition, many references to write(6,*) which were commented out or unnecessary have been removed. This PR fixes issue #325 .

Copy link
Contributor

@tukss tukss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks good to me. Thanks for cleaning this up!

@feathern
Copy link
Contributor Author

Great -- thanks for reviewing. I meant to note that using stdout%print in Input.F90 wasn't really possible (at least not in an easy way) since it can't be initialized until main_input is read. Until that file is read, we don't know if the user specified an output file or what its name was. That's why I left write(6,*) in Input.F90. Just wanted to make a note of that. Merging now...

@feathern feathern merged commit efd8eba into geodynamics:main Aug 21, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants