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
9206f022
Commit
9206f022
authored
11 years ago
by
pospelov
Browse files
Options
Downloads
Patches
Plain Diff
Repairing build for JCNS
parent
ba03fd22
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Core/Samples/inc/Layer.h
+3
-2
3 additions, 2 deletions
Core/Samples/inc/Layer.h
Tests/FunctionalTests/TestCore/IsGISAXS03/IsGISAXS03.cpp
+2
-1
2 additions, 1 deletion
Tests/FunctionalTests/TestCore/IsGISAXS03/IsGISAXS03.cpp
shared.pri
+1
-1
1 addition, 1 deletion
shared.pri
with
6 additions
and
4 deletions
Core/Samples/inc/Layer.h
+
3
−
2
View file @
9206f022
...
@@ -44,7 +44,8 @@ class Layer : public ICompositeSample
...
@@ -44,7 +44,8 @@ class Layer : public ICompositeSample
virtual
~
Layer
()
{}
virtual
~
Layer
()
{}
virtual
Layer
*
clone
()
const
{
return
new
Layer
(
*
this
);
}
//virtual Layer *clone() const { return new Layer(*this); }
virtual
Layer
*
clone
()
const
{
return
new
Layer
(
mp_material
,
m_thickness
);
}
//! Sets layer thickness in Angstrom.
//! Sets layer thickness in Angstrom.
virtual
void
setThickness
(
double
thickness
);
virtual
void
setThickness
(
double
thickness
);
...
@@ -76,7 +77,7 @@ class Layer : public ICompositeSample
...
@@ -76,7 +77,7 @@ class Layer : public ICompositeSample
virtual
LayerDWBASimulation
*
createDWBASimulation
()
const
{
return
0
;
}
virtual
LayerDWBASimulation
*
createDWBASimulation
()
const
{
return
0
;
}
protected
:
protected
:
Layer
(
const
Layer
&
other
)
Layer
(
const
Layer
&
other
)
:
ICompositeSample
()
{
{
mp_material
=
other
.
mp_material
;
mp_material
=
other
.
mp_material
;
m_thickness
=
other
.
m_thickness
;
m_thickness
=
other
.
m_thickness
;
...
...
This diff is collapsed.
Click to expand it.
Tests/FunctionalTests/TestCore/IsGISAXS03/IsGISAXS03.cpp
+
2
−
1
View file @
9206f022
...
@@ -111,7 +111,8 @@ void FunctionalTests::IsGISAXS03::runBA_Size()
...
@@ -111,7 +111,8 @@ void FunctionalTests::IsGISAXS03::runBA_Size()
Particle
nano_particle
(
n_particle
,
p_ff_cylinder
);
Particle
nano_particle
(
n_particle
,
p_ff_cylinder
);
// radius of nanoparticles will be sampled with gaussian probability
// radius of nanoparticles will be sampled with gaussian probability
int
nbins
(
100
),
nfwhm
(
2
);
int
nbins
(
100
),
nfwhm
(
2
);
StochasticSampledParameter
par
(
StochasticDoubleGaussian
(
radius
,
sigma
),
nbins
,
nfwhm
);
StochasticDoubleGaussian
double_gaussian
(
radius
,
sigma
);
StochasticSampledParameter
par
(
double_gaussian
,
nbins
,
nfwhm
);
ParticleBuilder
builder
;
ParticleBuilder
builder
;
builder
.
setPrototype
(
nano_particle
,
"/Particle/FormFactorCylinder/radius"
,
par
);
builder
.
setPrototype
(
nano_particle
,
"/Particle/FormFactorCylinder/radius"
,
par
);
builder
.
plantParticles
(
particle_decoration
);
builder
.
plantParticles
(
particle_decoration
);
...
...
This diff is collapsed.
Click to expand it.
shared.pri
+
1
−
1
View file @
9206f022
...
@@ -177,7 +177,6 @@ CONFIG(BORNAGAIN_ROOT) {
...
@@ -177,7 +177,6 @@ CONFIG(BORNAGAIN_ROOT) {
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
CONFIG += BORNAGAIN_PYTHON
CONFIG += BORNAGAIN_PYTHON
CONFIG(BORNAGAIN_PYTHON) {
CONFIG(BORNAGAIN_PYTHON) {
# TODO - implement check for existance of numpy/arrayobject.h
# user wants to compile python module
# user wants to compile python module
WhichPython=$$system(which python)
WhichPython=$$system(which python)
isEmpty(WhichPython) {
isEmpty(WhichPython) {
...
@@ -200,6 +199,7 @@ CONFIG(BORNAGAIN_PYTHON) {
...
@@ -200,6 +199,7 @@ CONFIG(BORNAGAIN_PYTHON) {
# we need to know the location of numpy
# we need to know the location of numpy
pythonnumpy=$$system("python -c 'import sys; import numpy; sys.stdout.write(numpy.get_include())'")
pythonnumpy=$$system("python -c 'import sys; import numpy; sys.stdout.write(numpy.get_include())'")
!exists($$pythonnumpy/numpy/arrayobject.h): error("Can't find numpy/arrayobject.h in $$pythonnumpy, you have to install python-numpy-devel")
INCLUDEPATH += $$pythonnumpy
INCLUDEPATH += $$pythonnumpy
}
}
}
}
...
...
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