Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
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
Container registry
Model registry
Operate
Environments
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coenen, Joachim
Frida
Commits
34f6a56e
Commit
34f6a56e
authored
Feb 10, 2017
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
z handling in oixy now as in oi
parent
80dc909a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pub/CHANGELOG
+2
-0
2 additions, 0 deletions
pub/CHANGELOG
pub/lib/opr.cpp
+11
-5
11 additions, 5 deletions
pub/lib/opr.cpp
with
13 additions
and
5 deletions
pub/CHANGELOG
+
2
−
0
View file @
34f6a56e
- z handling in oixy now as in oi
Release 2.3.5a of 01feb17:
Release 2.3.5a of 01feb17:
- CMake machinery now uses variables like ${library_name}_LIBRARY
- CMake machinery now uses variables like ${library_name}_LIBRARY
...
...
This diff is collapsed.
Click to expand it.
pub/lib/opr.cpp
+
11
−
5
View file @
34f6a56e
...
@@ -283,9 +283,9 @@ void NOperate::Integral()
...
@@ -283,9 +283,9 @@ void NOperate::Integral()
else
else
fout
=
POld
((
dynamic_cast
<
const
COld
*>
(
fin
))
->
new_POld
());
fout
=
POld
((
dynamic_cast
<
const
COld
*>
(
fin
))
->
new_POld
());
fout
->
log_action
(
"oi "
+
expr
);
fout
->
log_action
(
"oi "
+
expr
);
fout
->
ZCo
.
pop_back
();
fout
->
xco
=
fin
->
ZCo
.
back
();
fout
->
xco
=
fin
->
ZCo
.
back
();
fout
->
yco
=
T
->
node_coord
(
k
);
fout
->
yco
=
T
->
node_coord
(
k
);
fout
->
ZCo
.
pop_back
();
sout
=
PSpec
(
new
CSpec
);
sout
=
PSpec
(
new
CSpec
);
sout
->
z
=
fin
->
V
[
0
]
->
z
;
sout
->
z
=
fin
->
V
[
0
]
->
z
;
sout
->
z
.
pop_back
();
sout
->
z
.
pop_back
();
...
@@ -364,10 +364,15 @@ void NOperate::IntXY(string mode)
...
@@ -364,10 +364,15 @@ void NOperate::IntXY(string mode)
fout
->
xco
=
xco
;
fout
->
xco
=
xco
;
fout
->
yco
=
yco
;
fout
->
yco
=
yco
;
fout
->
ZCo
.
pop_back
();
PSpec
sout
(
new
CSpec
);
PSpec
sout
(
new
CSpec
);
sout
->
z
=
fin
->
V
[
0
]
->
z
;
sout
->
z
.
pop_back
();
for
(
int
j
=
0
;
j
<
fin
->
nJ
();
j
++
)
{
for
(
int
j
=
0
;
j
<
fin
->
nJ
();
j
++
)
{
if
(
fin
->
V
[
j
]
->
frozen
)
continue
;
int
n
=
fin
->
nPts
(
j
);
int
n
=
fin
->
nPts
(
j
);
if
(
icolx
>=
n
||
icoly
>=
n
||
(
with_d
&&
icold
>=
n
))
if
(
icolx
>=
n
||
icoly
>=
n
||
(
with_d
&&
icold
>=
n
))
throw
"not enough columns in spectrum "
+
S
(
j
);
throw
"not enough columns in spectrum "
+
S
(
j
);
...
@@ -375,12 +380,13 @@ void NOperate::IntXY(string mode)
...
@@ -375,12 +380,13 @@ void NOperate::IntXY(string mode)
sout
->
push_xyd
(
fin
->
VS
(
j
)
->
y
[
icolx
],
fin
->
VS
(
j
)
->
y
[
icoly
],
fin
->
VS
(
j
)
->
y
[
icold
]);
sout
->
push_xyd
(
fin
->
VS
(
j
)
->
y
[
icolx
],
fin
->
VS
(
j
)
->
y
[
icoly
],
fin
->
VS
(
j
)
->
y
[
icold
]);
else
else
sout
->
push_xy
(
fin
->
VS
(
j
)
->
y
[
icolx
],
fin
->
VS
(
j
)
->
y
[
icoly
]);
sout
->
push_xy
(
fin
->
VS
(
j
)
->
y
[
icolx
],
fin
->
VS
(
j
)
->
y
[
icoly
]);
sout
->
z
=
fin
->
VS
(
j
)
->
z
;
if
(
nz
>=
2
)
{
// new spectrum if jump in other z values
if
(
nz
>
2
)
{
// new spectrum if jump in other z value
double
zval
=
fin
->
V
[
j
]
->
z
[
nz
-
2
]
->
to_r
();
if
(
j
+
1
<
fin
->
nJ
()
if
(
j
+
1
<
fin
->
nJ
()
&&
fin
->
V
[
j
+
1
]
->
z
[
nz
-
2
]
->
to_r
()
!=
zval
)
{
&&
fin
->
V
[
j
+
1
]
->
z
[
nz
-
2
]
->
to_r
()
!=
fin
->
V
[
j
]
->
z
[
nz
-
2
]
->
to_r
())
{
fout
->
V
.
push_back
(
move
(
sout
));
fout
->
V
.
push_back
(
move
(
sout
));
sout
=
PSpec
(
new
CSpec
);
sout
=
PSpec
(
new
CSpec
);
sout
->
z
=
fin
->
V
[
j
+
1
]
->
z
;
sout
->
z
.
pop_back
();
}
}
}
}
}
}
...
...
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