Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
745b34f0
Commit
745b34f0
authored
11 years ago
by
Pospelov, Gennady
Committed by
pospelov
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Eigen alignment switched off completely for win32
parent
12a1130a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Core/Algorithms/inc/Beam.h
+5
-1
5 additions, 1 deletion
Core/Algorithms/inc/Beam.h
Tests/UnitTests/TestCore/BeamTest.h
+0
-2
0 additions, 2 deletions
Tests/UnitTests/TestCore/BeamTest.h
shared.pri
+3
-3
3 additions, 3 deletions
shared.pri
with
8 additions
and
6 deletions
Core/Algorithms/inc/Beam.h
+
5
−
1
View file @
745b34f0
...
@@ -24,17 +24,21 @@
...
@@ -24,17 +24,21 @@
#include
"Macros.h"
#include
"Macros.h"
GCC_DIAG_OFF
(
unused
-
local
-
typedefs
);
GCC_DIAG_OFF
(
unused
-
local
-
typedefs
);
#ifdef _WIN32
#define EIGEN_DONT_ALIGN 1
#endif
#include
<Eigen/Core>
#include
<Eigen/Core>
GCC_DIAG_ON
(
unused
-
local
-
typedefs
);
GCC_DIAG_ON
(
unused
-
local
-
typedefs
);
#endif
#endif
//! Ideal collimated Beam defined by wavelength, direction and intensity.
//! Ideal collimated Beam defined by wavelength, direction and intensity.
class
BA_CORE_API_
Beam
:
public
IParameterized
class
BA_CORE_API_
Beam
:
public
IParameterized
{
{
public:
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
//
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
// see http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html
// see http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html
Beam
();
Beam
();
...
...
This diff is collapsed.
Click to expand it.
Tests/UnitTests/TestCore/BeamTest.h
+
0
−
2
View file @
745b34f0
...
@@ -28,7 +28,6 @@ BeamTest::~BeamTest()
...
@@ -28,7 +28,6 @@ BeamTest::~BeamTest()
}
}
TEST_F
(
BeamTest
,
BeamInitialState
)
TEST_F
(
BeamTest
,
BeamInitialState
)
{
{
EXPECT_EQ
(
double
(
1
),
emptyBeam
.
getIntensity
());
EXPECT_EQ
(
double
(
1
),
emptyBeam
.
getIntensity
());
...
@@ -39,7 +38,6 @@ TEST_F(BeamTest, BeamInitialState)
...
@@ -39,7 +38,6 @@ TEST_F(BeamTest, BeamInitialState)
EXPECT_EQ
(
double
(
1
),
emptyBeam
.
getParameterPool
()
->
getParameter
(
"intensity"
).
getValue
()
);
EXPECT_EQ
(
double
(
1
),
emptyBeam
.
getParameterPool
()
->
getParameter
(
"intensity"
).
getValue
()
);
}
}
#include
<iostream>
TEST_F
(
BeamTest
,
BeamAssignment
)
TEST_F
(
BeamTest
,
BeamAssignment
)
{
{
...
...
This diff is collapsed.
Click to expand it.
shared.pri
+
3
−
3
View file @
745b34f0
...
@@ -190,9 +190,9 @@ QMAKE_CXXFLAGS_DEBUG += -fdiagnostics-show-option # to find out in gcc which opt
...
@@ -190,9 +190,9 @@ QMAKE_CXXFLAGS_DEBUG += -fdiagnostics-show-option # to find out in gcc which opt
#QMAKE_CXXFLAGS_RELEASE += -pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -Werror -Wno-unused
#QMAKE_CXXFLAGS_RELEASE += -pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -Werror -Wno-unused
#QMAKE_CXXFLAGS_RELEASE += -pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-overflow=5 -Wswitch-default -Werror -Wno-unused
#QMAKE_CXXFLAGS_RELEASE += -pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-overflow=5 -Wswitch-default -Werror -Wno-unused
#
win32{
win32{
#
QMAKE_CXXFLAGS += -mincoming-stack-boundary=2
QMAKE_CXXFLAGS += -mincoming-stack-boundary=2
#
}
}
# to compile with GPERFTOOLS support for code profiling
# to compile with GPERFTOOLS support for code profiling
CONFIG(GPERFTOOLS) {
CONFIG(GPERFTOOLS) {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment