Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/build-windows-native.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 0 additions & 8 deletions Common/src/geometry/meshreader/CCGNSMeshReaderFVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<cgsize_t> connElemCGNS(nElems[val_section] * SU2_CONN_SIZE, 0);
vector<unsigned short> elemTypes(nElems[val_section], 0);
vector<unsigned short> nPoinPerElem(nElems[val_section], 0);
vector<unsigned long> elemGlobalID(nElems[val_section], 0);

/*--- Read the section info again ---*/

if (cg_section_read(cgnsFileID, cgnsBase, cgnsZone, val_section + 1, sectionName, &elemType, &startE, &endE,
Expand Down