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

Merge/netcdf restart #166

Merged
merged 18 commits into from
Aug 20, 2016
Merged

Conversation

grey-nearing
Copy link
Collaborator

  1. Enabled netCDF restart capabilities.
  2. Fixed issues with output long names and units.
  3. Consolidated the number of calls to read the hru/gru mapping from the Local Attributes file - reduced from 4 to 1.

@anewman89
Copy link
Collaborator

What happened on the first merge commit (b92f1b5)? I wouldn't have expected all these changes to come in at this point, or am I missing something? The first two commits make sense for the restart, then it appears the merge introduced a bunch of syntax changes?

@grey-nearing
Copy link
Collaborator Author

Sorry, I canceled the other PR because it contained an error.

All of the syntax changes (e.g., endif -> end if) I did so as to make all of the syntax consistent throughout the code.

@anewman89
Copy link
Collaborator

Ok, sounds good. Just wanted to make sure it wasn't a merge issue or pull request with old syntax.

@@ -515,16 +483,16 @@ program multi_driver

! set default model parameters
do iGRU=1,nGRU
do localHRU=1,gru_struc(iGRU)%hruCount
do iHRU=1,gru_struc(iGRU)%hruCount
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we changing back from localHRU to iHRU?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

After the merge, half the lines in multi_driver.f90 used iHUR and half used localHRU. I had to choose one, and I went with iHRU because it is intuitive, it matches the other loop syntax in the rest of the code, and iHRU specifically is used elsewhere in the code.

print "(A,A)",'Created output file:',trim(fname)
enddo
if(err/=0)then; message=trim(message)//trim(cmessage); return; end if
print*,'Created output file:',trim(fname)
Copy link
Contributor

Choose a reason for hiding this comment

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

explicit format '(A,A)' can prevent unexpected newline in fname when fname is long.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

Grey S. Nearing and others added 5 commits June 29, 2016 09:13
…bal HRU index to the model output function rather than the local HRU index.
1. Time outputs in multistream.
2. A format statement in ffile_info.f90.
3. Some spacing issues in various syntax.
@bartnijssen
Copy link
Collaborator

@greyNearing: Please resolve conflict and let me know when this is ready to merge

@bartnijssen
Copy link
Collaborator

@greyNearing : This will resolve issue #125. Please update the branch and let me know when this is ready to merge.

Conflicts:
	build/source/driver/multi_driver.f90
	build/source/engine/snowLiqFlx.f90
@martynpclark martynpclark merged commit f7a9f45 into CH-Earth:develop Aug 20, 2016
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.

5 participants