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

CGNS import fails in multizone simulations #1564

Closed
ChristianBauerEng opened this issue Mar 18, 2022 · 1 comment
Closed

CGNS import fails in multizone simulations #1564

ChristianBauerEng opened this issue Mar 18, 2022 · 1 comment
Assignees
Labels

Comments

@ChristianBauerEng
Copy link
Contributor

ChristianBauerEng commented Mar 18, 2022

Describe the bug
I'm attempting to run coupled CHT simulations with a single fluid and a single solid zone. Both zones are read as seperate CGNS files.
In Dry-run mode everything works fine. However, when starting an actual run no matter in which order the zones are specified in the configuration list, the 2nd zone is always considered invalid:

------------------- Geometry Preprocessing ( Zone 1 ) -------------------
Reading the CGNS file: MeshSolid.cgns.
WARNING: The CGNS file version (3.31) is old and may cause high memory usage issues, consider updating the file with the cgnsupdate tool.
CGNS file contains 1 database(s).
Database 1, BASE#1: cell dimension of 2, physical dimension of 3.
1 total zone(s).
Zone number 2 invalid

It seems this error is thrown during the CGNS import.

cgns_zone *cgi_get_zone(cgns_file *cg, int B, int Z)
{
cgns_base *base;
base = cgi_get_base(cg, B);
if (base==0) return CG_OK;
if (Z>base->nzones || Z<=0) {
cgi_error("Zone number %d invalid",Z);
return CG_OK;
}
return &(base->zone[Z-1]);
}

Both zones run fine individually (when adding the missing, coupled BC of course).
When the second zone is converted to SU2 format and read in the native format, the case runs normally.

To Reproduce
Please provide a config file and mesh for a minimal example that recreates the problem.
CoupledSim.zip

Desktop (please complete the following information):

  • OS: SUSE Linux Enterprise Server 15 SP1
  • C++ compiler and version: intel 19.0.5.281
  • MPI implementation and version: intel MPI 2019
  • SU2 Version: v7.3.0 (develop)
@pcarruscag
Copy link
Member

Literally a one-liner bug, I'll open a PR soon.
Thank you for making it easy to reproduce 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants