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

Update to GBBPEx v005 #55

Merged
merged 5 commits into from
May 3, 2024
Merged

Conversation

zhanglikate
Copy link
Collaborator

Description

Type of change

  • Bug fix (fixes something broken)
  • New feature (adds functionality)
  • Maintenance (code refactor, clean-up, new CI test, etc.)

Change characteristics

  • Is this a breaking change (a change in existing functionality)? YES/NO
  • Does this change require a documentation update? YES/NO

How has this been tested?

Checklist

  • Any dependent changes have been merged and published
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • I have made corresponding changes to the documentation if necessary

jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
Copy link
Collaborator

@jderrico-noaa jderrico-noaa left a comment

Choose a reason for hiding this comment

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

Shellcheck flagged a syntax error with nested brackets for (potential) misuse of logical operators, can you let me know if this suggestion works?

@@ -109,12 +109,18 @@ for n in $(seq 1 6); do
else

if [ ${SYEAR} -eq 2016 -o ${emiss_date1} -ge 20230115 ]; then ## JKH - change date
if [ ${emiss_date1} -ge 20230509 ]; then ## JKH - change date
if [ [ ${emiss_date1} -ge 20230509 ] && [ ${emiss_date1} -le 20240501 ] ]; then ## JKH - change date
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if [ [ ${emiss_date1} -ge 20230509 ] && [ ${emiss_date1} -le 20240501 ] ]; then ## JKH - change date
if [[ ${emiss_date1} -ge 20230509 && ${emiss_date1} -le 20240501 ]]; then ## JKH - change date

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have updated. How can I do now?

jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
# SO2=GBBEPx.so2.${SYEAR}${nmonth}${nday}.FV3.${CASE}Grid.tile${n}.bin
# FRP=meanFRP.${SYEAR}${nmonth}${nday}.FV3.${CASE}Grid.tile${n}.bin
#fi
if [ ${SYEAR} -eq 2016 -o ${emiss_date1} -ge 20230115 ]; then ## JKH - change date

Check warning

Code scanning / shellcheck

Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. Warning

Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
jobs/rocoto/prepchem.sh Fixed Show resolved Hide resolved
jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
jobs/rocoto/prepchem.sh Fixed Show resolved Hide resolved
jobs/rocoto/prepchem.sh Fixed Show fixed Hide fixed
jobs/rocoto/prepchem.sh Fixed Show resolved Hide resolved
jobs/rocoto/prepchem.sh Fixed Show resolved Hide resolved
@jderrico-noaa
Copy link
Collaborator

Shell check was successful, so I'm merging this PR

@jderrico-noaa jderrico-noaa merged commit 924deee into NOAA-GSL:RT_UFS-Chem May 3, 2024
2 of 3 checks passed
@zhanglikate
Copy link
Collaborator Author

Shell check was successful, so I'm merging this PR

No, it is has issue. I fixed one more time.

Shell check was successful, so I'm merging this PR

@zhanglikate
Copy link
Collaborator Author

@jderrico-noaa I think I need to submit one more PR, the previous did not work.

jderrico-noaa added a commit that referenced this pull request May 3, 2024
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