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
f01f6574
"hugo/content/deploy/building/windows/index.md" did not exist on "fb0bd11b78e1ce781d76cddec2a5141aa39e21a0"
Commit
f01f6574
authored
12 years ago
by
pospelov
Browse files
Options
Downloads
Patches
Plain Diff
New meso fit configuration
parent
d6e160fd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
App/inc/TestMesoCrystal2.h
+1
-0
1 addition, 0 deletions
App/inc/TestMesoCrystal2.h
App/src/TestMesoCrystal2.cpp
+14
-2
14 additions, 2 deletions
App/src/TestMesoCrystal2.cpp
with
15 additions
and
2 deletions
App/inc/TestMesoCrystal2.h
+
1
−
0
View file @
f01f6574
...
@@ -70,6 +70,7 @@ public:
...
@@ -70,6 +70,7 @@ public:
void
fitsuite_config1
();
void
fitsuite_config1
();
void
fitsuite_config2
();
void
fitsuite_config2
();
void
fitsuite_config3
();
void
fitsuite_config3
();
void
fitsuite_config4
();
private
:
private
:
void
initializeRealData
();
void
initializeRealData
();
...
...
This diff is collapsed.
Click to expand it.
App/src/TestMesoCrystal2.cpp
+
14
−
2
View file @
f01f6574
...
@@ -129,6 +129,9 @@ void TestMesoCrystal2::fitsuite_setup(int nconfig)
...
@@ -129,6 +129,9 @@ void TestMesoCrystal2::fitsuite_setup(int nconfig)
case
3
:
case
3
:
fitsuite_config3
();
fitsuite_config3
();
break
;
break
;
case
4
:
fitsuite_config4
();
break
;
default:
default:
throw
LogicErrorException
(
"TestMesoCrystal2::fitsuite_setup() -> Error! Can't setup FitSuite"
);
throw
LogicErrorException
(
"TestMesoCrystal2::fitsuite_setup() -> Error! Can't setup FitSuite"
);
break
;
break
;
...
@@ -185,14 +188,23 @@ void TestMesoCrystal2::fitsuite_config3()
...
@@ -185,14 +188,23 @@ void TestMesoCrystal2::fitsuite_config3()
strategy_all
->
release_all
();
strategy_all
->
release_all
();
m_fitSuite
->
addFitStrategy
(
strategy_all
);
m_fitSuite
->
addFitStrategy
(
strategy_all
);
// const double minima[]={0.042, 0.004};
// const double maxima[]={0.052, 0.03};
Mask
*
mask1
=
OutputDataFunctions
::
CreateRectangularMask
(
*
m_real_data
,
0.041
,
0.003
,
0.051
,
0.03
);
Mask
*
mask1
=
OutputDataFunctions
::
CreateRectangularMask
(
*
m_real_data
,
0.041
,
0.003
,
0.051
,
0.03
);
m_real_data
->
setMask
(
*
mask1
);
m_real_data
->
setMask
(
*
mask1
);
}
}
void
TestMesoCrystal2
::
fitsuite_config4
()
{
fitsuite_config3
();
for
(
FitSuiteStrategies
::
iterator
it
=
m_fitSuite
->
getFitStrategies
()
->
begin
();
it
!=
m_fitSuite
->
getFitStrategies
()
->
end
();
++
it
)
{
FitSuiteStrategyAdjustParameters
*
strategy
=
dynamic_cast
<
FitSuiteStrategyAdjustParameters
*>
(
(
*
it
)
);
assert
(
strategy
);
strategy
->
setPreserveOriginalValues
(
false
);
}
}
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// FitSuite configuration #2
// FitSuite configuration #2
...
...
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