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

correct for usage with map_flag implemented in 2021R1 #18

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

akaszynski
Copy link
Collaborator

Result files from MAPDL 2021R1 use mapFlag to denote if records are written using record pointers for each set, or two pointer records:

/usr/ansys_inc/v211/ansys/customize/include/fdresu.inc:

c   SEC      i       1     varies   if mapFlag == 0 --> Length = maxsec
c                                   Section index table.  The record
c                                   contains record pointers for each
c                                   section set.
c
c                                   if mapFlag == 1 --> Length = numsec
c                                   Section external number mapping.
c                                   This record maps the number used for storage
c                                   to the actual section number

This causes _load_section_data in current file reader to error out when attempting to read the records. Simple patch is to check if mapFlag is True and get the pointer location from the second record.

Additional notes:

  • Adds an additional test for verification
  • Use version_info = 0, 50, 'dev0' to enable the creation of a release branch to follow Trunk Based Development.

@akaszynski akaszynski merged commit 9255e79 into master Mar 22, 2021
@akaszynski akaszynski deleted the fix/section_data_2021R1 branch March 22, 2021 19:08
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.

1 participant