-
Notifications
You must be signed in to change notification settings - Fork 53
Fix for user-defined inlet velocity profile failure #556
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -297,8 +297,13 @@ void bc_ini(const ComMod& com_mod, const CmMod& cm_mod, bcType& lBc, faceType& l | |
|
|
||
| int iM = lFa.iM; | ||
| int iFa = lBc.iFa; | ||
| lBc.gx.resize(lFa.nNo); | ||
| //if (.NOT.ALLOCATED(lBc.gx)) ALLOCATE(lBc.gx(lFa.nNo)) | ||
|
|
||
| // lBc.gx may have values set when for example when | ||
| // reading in a user-defined profile. | ||
| if (lBc.gx.size() == 0) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting, so previously any time a user defined a spatial profile the solver would fail?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @aabrown100-git Correct; there are no CI tests for the |
||
| lBc.gx.resize(lFa.nNo); | ||
| } | ||
|
Comment on lines
+301
to
+305
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ktbolt is it worth validating that |
||
|
|
||
| #ifdef debug_bc_ini | ||
| dmsg << "iM: " << iM; | ||
| dmsg << "iFa: " << iFa ; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ktbolt do you have a test you can add for user-defined spatial profile?