Skip to content

Conversation

@MicK7
Copy link
Contributor

@MicK7 MicK7 commented Dec 1, 2023

Proposed Changes

The files of the external CGNS library included with SU2 are upgraded to 4.4 release.
This will allow reading files generated with recent version of CGNS that are currently rejected because SU2 included version is a bit old.

Related Work

No issue created yet but some users did comment about it.

PR Checklist

Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with --warnlevel=3 when using meson).
  • My contribution is commented and consistent with SU2 style (https://su2code.github.io/docs_v7/Style-Guide/).
  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
  • 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.

@MicK7 MicK7 added the dependencies Pull requests that update a dependency file label Dec 1, 2023
set_error(NO_ERROR, err);
}
else if (option == ADFH_CONFIG_ELINK_FILE_CACHE_SIZE) {
h5pset_elink_file_cache_size_size = (unsigned)((size_t)value);

Check warning

Code scanning / CodeQL

Local variable address stored in non-local memory

A stack address which arrived via a [parameter](1) may be assigned to a non-local variable.
@MicK7 MicK7 force-pushed the update_cgns_to_4.4 branch 2 times, most recently from d7cf89a to a11dd92 Compare December 1, 2023 08:15
@pcarruscag pcarruscag changed the base branch from master to develop December 1, 2023 16:22
@MicK7 MicK7 force-pushed the update_cgns_to_4.4 branch from 52993cb to 6b1b59a Compare December 2, 2023 06:23
CGNS_ENUMT(DataType_t) type;

/* get memory address of file */
cg = cgi_get_file(file_number);

Check failure

Code scanning / CodeQL

Inconsistent nullness check

The result of this call to cgi_get_file is not checked for null, but 88% of calls to cgi_get_file check for null.
CGNS_ENUMT(DataType_t) type;

/* get memory address of file */
cg = cgi_get_file(file_number);

Check failure

Code scanning / CodeQL

Inconsistent nullness check

The result of this call to cgi_get_file is not checked for null, but 88% of calls to cgi_get_file check for null.

zone = cgi_get_zone(cg, B, Z);
if (zone==0) return CG_ERROR;
cg = cgi_get_file(fn);

Check failure

Code scanning / CodeQL

Inconsistent nullness check

The result of this call to cgi_get_file is not checked for null, but 88% of calls to cgi_get_file check for null.
@MicK7 MicK7 force-pushed the update_cgns_to_4.4 branch from 6b1b59a to 4353e18 Compare December 2, 2023 07:36
@MicK7 MicK7 merged commit 3ee6027 into su2code:develop Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:chore dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants