Skip to content

Commit 795ff09

Browse files
authored
Merge pull request #516 from lukasmerten/bugfix
MacOS install issue
2 parents 80bef3b + 71d60cc commit 795ff09

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

.github/workflows/testing_OSX.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
uses: actions/checkout@v4
2020
- name: Preinstall
2121
run: |
22-
brew install hdf5 fftw cfitsio muparser libomp swig
23-
pip install numpy==1.26
22+
brew install hdf5 fftw cfitsio muparser libomp swig python3
23+
pip install numpy==1.26.4 cmake
2424
- name: Set up the build
2525
env:
2626
CXX: ${{ matrix.config.cxx }}

include/crpropa/ModuleList.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
#ifndef CRPROPA_MODULE_LIST_H
22
#define CRPROPA_MODULE_LIST_H
33

4+
#include <algorithm>
5+
#include <csignal>
6+
#include <iostream>
7+
#include <vector>
8+
#include <exception>
9+
#include <sstream>
10+
#include <list>
11+
412
#include "crpropa/Candidate.h"
513
#include "crpropa/Module.h"
614
#include "crpropa/Source.h"
715
#include "crpropa/module/Output.h"
816

9-
#include <list>
10-
#include <sstream>
1117

1218
namespace crpropa {
1319

src/ModuleList.cpp.in

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
#include "crpropa/ModuleList.h"
22
#include "crpropa/ProgressBar.h"
33

4-
#if _OPENMP
5-
#include <omp.h>
6-
#define OMP_SCHEDULE @OMP_SCHEDULE@
7-
#endif
8-
9-
#include <algorithm>
10-
#include <csignal>
11-
#include <bits/stdc++.h>
124
#ifndef sighandler_t
135
typedef void (*sighandler_t)(int);
146
#endif
7+
#ifdef _OPENMP
8+
#include <omp.h>
9+
#define OMP_SCHEDULE @OMP_SCHEDULE@
10+
#endif
1511

1612
using namespace std;
1713

0 commit comments

Comments
 (0)