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

Rahulproblem #315

Closed
wants to merge 11 commits into from
Closed

Rahulproblem #315

wants to merge 11 commits into from

Conversation

jderber-NOAA
Copy link
Contributor

Rahul reports hdraobmod does not compile with GNU compiler. Minor changes are made to make it compile.

Copy link
Contributor

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

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

I have tested these changes with GNU compiler set.
The library and executables built as expected.
Thank you for a quick fix.

Copy link
Contributor

@MichaelLueken MichaelLueken left a comment

Choose a reason for hiding this comment

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

I have completed my visual inspection of the code changes. There is an issue with HDRAOB on line 228. Please add the initial ' to the character string. Also, please use the following steps to remove the changes to fix, regression/regression_var.sh, and reduce the number of commits to a single commit (please note that a new PR will need to be created after following the steps):

  1. git clone --recursive git@github.com:jderber-NOAA/GSI.git update
  2. cd update
  3. git checkout rahulproblem
  4. git remote add upstream git@github.com:NOAA-EMC/GSI.git
  5. git remote update
  6. git checkout upstream/master
  7. git checkout -b hf/rahulproblem
  8. git submodule update
  9. git merge --squash rahulproblem
  10. git reset HEAD fix regression/regression_var.sh
  11. git checkout -- regression/regression_var.sh
  12. Make necessary change to line 228 in src/gsi/hdraobmod.f90
  13. git add src/gsi/hdraobmod.f90
  14. git commit -m "GitHub Issue NOAA-EMC/GSI#314. Modify hdraobmod.f90 to fix problem with GNU compiler found by Rahul."
  15. git push origin hf/rahulproblem
  16. Create a new PR using this hotfix branch

These steps will reduce the 11 commits to a single commit, remove the regression of the fix submodule from 2ff8065 to f5bdc1, correct the issue in hdraobmod.f90 that is keeping the GSI from compiling on WCOSS, and undo the change to regression/regression_var.sh. There is no need to remove the current PR, since Rahul and I have already completed our review of the correction.

If you have any questions, please let me know.

@@ -220,6 +224,8 @@ subroutine read_hdraob(nread,ndata,nodata,infile,obstype,lunout,twindin,sis,&

print_verbose=.false.
if(verbose) print_verbose=.true.
c_prvstg = '88888888'
c_sprvstg =HDRAOB'
Copy link
Contributor

Choose a reason for hiding this comment

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

Please include the ' before HDRAOB' on line 228. The code fails to compile with the following:

/gpfs/dell2/emc/modeling/noscrub/Michael.Lueken/update/src/gsi/hdraobmod.f90(228): error #5120: Unterminated character constant
  c_sprvstg =HDRAOB'
-------------------^

@MichaelLueken
Copy link
Contributor

This work was merged to the authoritative repository at 6e50069 via PR #324. Closing obsolete PR.

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.

Failure to compile hdraobmod on GNU compiler
3 participants