Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
b8f8f092
Commit
b8f8f092
authored
9 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
gtCalculateGrain: fixed missed updating of hklsp when swapping components
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
05cf9734
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
4_grains/gtCalculateGrain.m
+2
-0
2 additions, 0 deletions
4_grains/gtCalculateGrain.m
4_grains/gtCalculateGrain_p.m
+7
-5
7 additions, 5 deletions
4_grains/gtCalculateGrain_p.m
with
9 additions
and
5 deletions
4_grains/gtCalculateGrain.m
+
2
−
0
View file @
b8f8f092
...
...
@@ -187,6 +187,7 @@ pls4(:, chind4, [1, 3]) = pls4(:, chind4, [3, 1]);
om4
([
1
,
3
],
chind4
)
=
om4
([
3
,
1
],
chind4
);
omind4
([
1
,
3
],
chind4
)
=
omind4
([
3
,
1
],
chind4
);
rot_l2s_4
(:,
:,
chind4
,
[
1
,
3
])
=
rot_l2s_4
(:,
:,
chind4
,
[
3
,
1
]);
hklsp4
(
chind4
,
:,
[
1
,
3
])
=
hklsp4
(
chind4
,
:,
[
3
,
1
]);
chind4
=
om4
(
2
,
:)
>
om4
(
4
,
:);
...
...
@@ -195,6 +196,7 @@ pls4(:, chind4, [2, 4]) = pls4(:, chind4, [4, 2]);
om4
([
2
,
4
],
chind4
)
=
om4
([
4
,
2
],
chind4
);
omind4
([
2
,
4
],
chind4
)
=
omind4
([
4
,
2
],
chind4
);
rot_l2s_4
(:,
:,
chind4
,
[
2
,
4
])
=
rot_l2s_4
(:,
:,
chind4
,
[
4
,
2
]);
hklsp4
(
chind4
,
:,
[
2
,
4
])
=
hklsp4
(
chind4
,
:,
[
4
,
2
]);
%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Four omegas of the plane normal (1-3 and 2-4 are the two Friedel pairs):
...
...
This diff is collapsed.
Click to expand it.
4_grains/gtCalculateGrain_p.m
+
7
−
5
View file @
b8f8f092
...
...
@@ -166,7 +166,7 @@ pl_labd = gtGeoSam2Lab(pl_samd', eye(3), labgeo, samgeo, true, false)';
% Four omegas of the plane normal (1-3 and 2-4 are the two Friedel pairs):
% pls is plus or minus pl, and St is the rotation tensor per each omega
[
om4
,
pllab4
,
pls4
,
rot4
,
omind4
]
=
gtFedPredictOmegaMultiple
(
pl_labd
,
...
[
om4
,
pllab4
,
pls4
,
rot
_l2s_
4
,
omind4
]
=
gtFedPredictOmegaMultiple
(
pl_labd
,
...
sinth
,
labgeo
.
beamdir
', labgeo.rotdir'
,
rotcomp
,
[]);
% Delete those where no reflection occurs
...
...
@@ -214,7 +214,8 @@ pllab4(:, chind4, [1, 3]) = pllab4(:, chind4, [3, 1]);
pls4
(:,
chind4
,
[
1
,
3
])
=
pls4
(:,
chind4
,
[
3
,
1
]);
om4
([
1
,
3
],
chind4
)
=
om4
([
3
,
1
],
chind4
);
omind4
([
1
,
3
],
chind4
)
=
omind4
([
3
,
1
],
chind4
);
rot4
(:,
:,
chind4
,
[
1
,
3
])
=
rot4
(:,
:,
chind4
,
[
3
,
1
]);
rot_l2s_4
(:,
:,
chind4
,
[
1
,
3
])
=
rot_l2s_4
(:,
:,
chind4
,
[
3
,
1
]);
hklsp4
(
chind4
,
:,
[
1
,
3
])
=
hklsp4
(
chind4
,
:,
[
3
,
1
]);
chind4
=
om4
(
2
,
:)
>
om4
(
4
,
:);
...
...
@@ -222,7 +223,8 @@ pllab4(:, chind4, [2, 4]) = pllab4(:, chind4, [4, 2]);
pls4
(:,
chind4
,
[
2
,
4
])
=
pls4
(:,
chind4
,
[
4
,
2
]);
om4
([
2
,
4
],
chind4
)
=
om4
([
4
,
2
],
chind4
);
omind4
([
2
,
4
],
chind4
)
=
omind4
([
4
,
2
],
chind4
);
rot4
(:,
:,
chind4
,
[
2
,
4
])
=
rot4
(:,
:,
chind4
,
[
4
,
2
]);
rot_l2s_4
(:,
:,
chind4
,
[
2
,
4
])
=
rot_l2s_4
(:,
:,
chind4
,
[
4
,
2
]);
hklsp4
(
chind4
,
:,
[
2
,
4
])
=
hklsp4
(
chind4
,
:,
[
4
,
2
]);
%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Four omegas of the plane normal (1-3 and 2-4 are the two Friedel pairs):
...
...
@@ -232,7 +234,7 @@ pllab4(:, :, [2, 3]) = pllab4(:, :, [3, 2]);
pls4
(:,
:,
[
2
,
3
])
=
pls4
(:,
:,
[
3
,
2
]);
om4
([
2
,
3
],
:)
=
om4
([
3
,
2
],
:);
omind4
([
2
,
3
],
:)
=
omind4
([
3
,
2
],
:);
rot4
(:,
:,
:,
[
2
,
3
])
=
rot4
(:,
:,
:,
[
3
,
2
]);
rot
_l2s_
4
(:,
:,
:,
[
2
,
3
])
=
rot
_l2s_
4
(:,
:,
:,
[
3
,
2
]);
hklsp4
(:,
:,
[
2
,
3
])
=
hklsp4
(:,
:,
[
3
,
2
]);
%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -250,7 +252,7 @@ pllab = reshape(permute(pllab4, [1 3 2]), 3, []);
pls
=
reshape
(
permute
(
pls4
,
[
1
3
2
]),
3
,
[]);
plorig
=
reshape
(
permute
(
plorig4
,
[
1
3
2
]),
3
,
[]);
rot_l2s
=
reshape
(
permute
(
rot4
,
[
1
2
4
3
]),
3
,
3
,
[]);
rot_l2s
=
reshape
(
permute
(
rot
_l2s_
4
,
[
1
2
4
3
]),
3
,
3
,
[]);
thetatypesp
=
reshape
(
thetatypesp4
'
,
[],
1
);
hkl
=
reshape
(
permute
(
hkl4
,
[
3
1
2
]),
[],
num_hkl_indxs
);
...
...
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