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

Simplify architecture selection, fix bug in file naming #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

efiring
Copy link

@efiring efiring commented Mar 27, 2019

This PR does the following:

  • Adds a .gitignore file.
  • Fixes a memory-overwriting bug in the file-renaming code.
  • Adds a generic single-processor gfortran architecture.
  • Localizes the selection of the architecture to a single line in Makefile, so nothing else needs to be edited.

Ideally this PR would be split up and reorganized, but that would take time I would rather not devote to it, given that I think all parts of the PR should be merged.

The memory-overwrite bug in mod_directory.c was sometimes preventing the output files from being moved between "SCRATCH" and "output".

Some of the commits look more extensive than they actually are because I use an editor that strips trailing whitespace. Ideally, all trailing whitespace would already have been stripped.

Now switching between gfortran and mpi requires only a single-line
change in Makefile instead of needing to edit cms.f90.
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.

None yet

1 participant