diff --git a/.github/workflows/build-windows-native.yml b/.github/workflows/build-windows-native.yml new file mode 100644 index 00000000000..adaefcf413a --- /dev/null +++ b/.github/workflows/build-windows-native.yml @@ -0,0 +1,63 @@ +name: Windows Native Build + +on: + push: + branches: + - develop + - master + pull_request: + branches: + - develop + - master + +jobs: + build: + name: Build SU2 (Windows native) + runs-on: windows-latest + defaults: + run: + shell: msys2 {0} + + steps: + - name: Set up MSYS2 + uses: msys2/setup-msys2@v2 + with: + msystem: MINGW64 + update: true + install: >- + mingw-w64-x86_64-gcc + mingw-w64-x86_64-meson + mingw-w64-x86_64-ninja + mingw-w64-x86_64-python + mingw-w64-x86_64-zlib + + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Configure (no-MPI) + run: | + meson setup build \ + --buildtype=release \ + -Dwith-mpi=disabled \ + -Denable-cgns=true \ + -Denable-tecio=false \ + --prefix="$PWD/install" + + - name: Build + run: meson compile -C build -j2 + + - name: Install + run: meson install -C build + + - name: Create archive + run: | + cd install + 7z a -tzip ../SU2-windows-native.zip bin/* + + - name: Upload binaries + uses: actions/upload-artifact@v4 + with: + name: SU2-windows-native + path: SU2-windows-native.zip diff --git a/Common/src/geometry/meshreader/CCGNSMeshReaderFVM.cpp b/Common/src/geometry/meshreader/CCGNSMeshReaderFVM.cpp index bd21c397695..ff8a49e2de9 100644 --- a/Common/src/geometry/meshreader/CCGNSMeshReaderFVM.cpp +++ b/Common/src/geometry/meshreader/CCGNSMeshReaderFVM.cpp @@ -482,14 +482,6 @@ void CCGNSMeshReaderFVM::ReadCGNSSurfaceSection(int val_section) { char sectionName[CGNS_STRING_SIZE]; if (rank == MASTER_NODE) { - /*--- Allocate some memory for the handling the connectivity - and auxiliary data that we are need to communicate. ---*/ - - vector connElemCGNS(nElems[val_section] * SU2_CONN_SIZE, 0); - vector elemTypes(nElems[val_section], 0); - vector nPoinPerElem(nElems[val_section], 0); - vector elemGlobalID(nElems[val_section], 0); - /*--- Read the section info again ---*/ if (cg_section_read(cgnsFileID, cgnsBase, cgnsZone, val_section + 1, sectionName, &elemType, &startE, &endE,