Skip to content

Added check to see if fimp(2) deviates from default value, if it does…#3053

Merged
ajpearcey merged 3 commits intomainfrom
417-ralpne-overwrites-fimp02-in-indat
Feb 15, 2024
Merged

Added check to see if fimp(2) deviates from default value, if it does…#3053
ajpearcey merged 3 commits intomainfrom
417-ralpne-overwrites-fimp02-in-indat

Conversation

@grmtrkngtn
Copy link
Copy Markdown
Collaborator

@grmtrkngtn grmtrkngtn commented Feb 14, 2024

… write a warning message to use ralpne instead.

Description

This value is controlled by ralpne , in fact changing fimp(2) does not change the value of the parameter. It also doesn't make sense that a user would set these two parameters to different values in the first place.

However, as fimp(2) is part of the fimp array, it's not straight forward to remove it as an input variable. All members of fimp(1:13) are inputs, and all of them are output (and still used by other parts of the code). A generic fortran function loop for looping through arrays is used to set them as inputs. It doesn't seem elegant to add a specific exception to this function.

I have added a warning and stop to the user when they change fimp(2) from the default value, and they are told to use ralpne instead.

Checklist

I confirm that I have completed the following checks:

  • I have justified any large differences in the regression tests caused by this pull request in the comments.
  • I have added new tests where appropriate for the changes I have made.
  • If I have had to change any existing unit or integration tests, I have justified this change in the pull request comments.
  • If I have made documentation changes, I have checked they render correctly.
  • I have added documentation for my change, if appropriate.

… write a warning message to use ralpne instead.
@grmtrkngtn grmtrkngtn linked an issue Feb 14, 2024 that may be closed by this pull request
@grmtrkngtn grmtrkngtn assigned ajpearcey and unassigned jonmaddock Feb 15, 2024
Copy link
Copy Markdown
Collaborator

@ajpearcey ajpearcey left a comment

Choose a reason for hiding this comment

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

lgtm

@ajpearcey ajpearcey merged commit 00e1700 into main Feb 15, 2024
@grmtrkngtn grmtrkngtn deleted the 417-ralpne-overwrites-fimp02-in-indat branch April 4, 2024 09:47
chris-ashe pushed a commit that referenced this pull request Apr 22, 2024
#3053)

* Added check to see if fimp(2) deviates from default value, if it does write a warning message to use ralpne instead.

* Added stop to enforce the message, mofidified message
chris-ashe pushed a commit that referenced this pull request May 1, 2024
#3053)

* Added check to see if fimp(2) deviates from default value, if it does write a warning message to use ralpne instead.

* Added stop to enforce the message, mofidified message
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.

ralpne overwrites fimp(02) in IN.DAT

3 participants