58 lines
3.2 KiB
Diff
58 lines
3.2 KiB
Diff
|
From 45cab061494467165ba515055a828cdd39567c0e Mon Sep 17 00:00:00 2001
|
||
|
From: Jasper Chan <jasperchan515@gmail.com>
|
||
|
Date: Mon, 5 Aug 2019 23:37:35 -0700
|
||
|
Subject: [PATCH] Remove default(none) so that it compiles in gcc9
|
||
|
|
||
|
---
|
||
|
src/layerPart.cpp | 2 +-
|
||
|
src/support.cpp | 6 +++---
|
||
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
||
|
|
||
|
diff --git src/layerPart.cpp src/layerPart.cpp
|
||
|
index ba3e7157..d36a31f6 100644
|
||
|
--- src/layerPart.cpp
|
||
|
+++ src/layerPart.cpp
|
||
|
@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
|
||
|
{
|
||
|
const auto total_layers = slicer->layers.size();
|
||
|
assert(mesh.layers.size() == total_layers);
|
||
|
-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
|
||
|
+#pragma omp parallel for shared(mesh, slicer) schedule(dynamic)
|
||
|
// Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
|
||
|
for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
|
||
|
{
|
||
|
diff --git src/support.cpp src/support.cpp
|
||
|
index 9bd531a6..0a43de2f 100644
|
||
|
--- src/support.cpp
|
||
|
+++ src/support.cpp
|
||
|
@@ -816,7 +816,7 @@ void AreaSupport::generateOverhangAreasForMesh(SliceDataStorage& storage, SliceM
|
||
|
}
|
||
|
|
||
|
//Generate the actual areas and store them in the mesh.
|
||
|
- #pragma omp parallel for default(none) shared(storage, mesh) schedule(dynamic)
|
||
|
+ #pragma omp parallel for shared(storage, mesh) schedule(dynamic)
|
||
|
// Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
|
||
|
for (int layer_idx = 1; layer_idx < static_cast<int>(storage.print_layer_count); layer_idx++)
|
||
|
{
|
||
|
@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
|
||
|
constexpr bool no_prime_tower = false;
|
||
|
xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
|
||
|
// for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
|
||
|
- #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
|
||
|
+ #pragma omp parallel for shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
|
||
|
// Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
|
||
|
for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
|
||
|
{
|
||
|
@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
|
||
|
const int max_checking_layer_idx = std::max(0,
|
||
|
std::min(static_cast<int>(storage.support.supportLayers.size()),
|
||
|
static_cast<int>(layer_count - (layer_z_distance_top - 1))));
|
||
|
-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
|
||
|
+#pragma omp parallel for shared(support_areas, storage) schedule(dynamic)
|
||
|
// Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
|
||
|
for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
|
||
|
{
|
||
|
--
|
||
|
2.22.0
|
||
|
|