Skip to content

Conversation

@GomerOfDoom
Copy link
Contributor

Proposed Changes

Changes have been made to accomodate very large meshes/data sets.
MPI calls were changed to accomodate values over the limit of INT_MAX, and some standard int variables were changed to unsigned long variables.

Related Work

Addresses problems raised in issue #949

PR Checklist

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with the '-Wall -Wextra -Wno-unused-parameter -Wno-empty-body' compiler flags).
  • My contribution is commented and consistent with SU2 style.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp) , if necessary.

Copy link
Member

@economon economon left a comment

Choose a reason for hiding this comment

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

LGTM, congrats on your first PR @GomerOfDoom !

Let's see if anyone else has comments


int totalByteSize, byteSize;
unsigned long totalByteSize;
int byteSize;
Copy link
Member

Choose a reason for hiding this comment

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

while you're at it, I would just move the declaration of these two variables down to wherever they are used (rather than up here at the top)

if (geometry->GetGlobal_to_Local_Point(iPoint_Global) > -1) {
blocklen[counter] = nFields;
displace[counter] = iPoint_Global*nFields;
//if (iPoint_Global*nFields > INT_MAX){
Copy link
Member

Choose a reason for hiding this comment

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

Go ahead and remove the commented warning here since it is no longer needed

Copy link
Member

@pcarruscag pcarruscag left a comment

Choose a reason for hiding this comment

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

LGTM

@GomerOfDoom GomerOfDoom merged commit 8486f3c into develop May 13, 2020
@GomerOfDoom GomerOfDoom deleted the fix_large_mesh branch May 13, 2020 16:06
@pcarruscag pcarruscag mentioned this pull request Jul 27, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure to Restart on Large Meshes with Time-Averaged Data

5 participants