Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Code/Source/solver/baf_ini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Copy Markdown
Collaborator

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?

// reading in a user-defined profile.
if (lBc.gx.size() == 0) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The 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?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@aabrown100-git Correct; there are no CI tests for the Spatial_profile_file_path parameter.

lBc.gx.resize(lFa.nNo);
}
Comment on lines +301 to +305
Copy link
Copy Markdown
Collaborator

@aabrown100-git aabrown100-git May 30, 2026

Choose a reason for hiding this comment

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

@ktbolt is it worth validating that lBc.gx.size() == lFa.nNo if it's not 0?


#ifdef debug_bc_ini
dmsg << "iM: " << iM;
dmsg << "iFa: " << iFa ;
Expand Down
Loading