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
11eadc0f
Commit
11eadc0f
authored
8 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
Test-cases: fixed ceter determination of generated test cases
Signed-off-by:
Nicola Vigano
<
vigano@yoda.esrf.fr
>
parent
4bc81ca0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zUtil_Deformation/gtDefSyntheticGrainCreate.m
+8
-3
8 additions, 3 deletions
zUtil_Deformation/gtDefSyntheticGrainCreate.m
with
8 additions
and
3 deletions
zUtil_Deformation/gtDefSyntheticGrainCreate.m
+
8
−
3
View file @
11eadc0f
...
@@ -49,6 +49,11 @@ detgeo = parameters.detgeo;
...
@@ -49,6 +49,11 @@ detgeo = parameters.detgeo;
% Update labgeo
% Update labgeo
parameters
.
labgeo
=
labgeo
;
parameters
.
labgeo
=
labgeo
;
if
(
~
isfield
(
parameters
.
fsim
,
'oversizeVol'
)
...
||
isempty
(
parameters
.
fsim
.
oversizeVol
))
parameters
.
fsim
.
oversizeVol
=
1.2
;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Load grain parameters
%%% Load grain parameters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
@@ -142,7 +147,7 @@ end
...
@@ -142,7 +147,7 @@ end
fprintf
(
'\b\b: Done in %g seconds.\nComputing voxel centers..'
,
toc
(
c
))
fprintf
(
'\b\b: Done in %g seconds.\nComputing voxel centers..'
,
toc
(
c
))
c
=
tic
();
c
=
tic
();
fedpars
.
vox000sam
=
grain
.
center
-
(
ngv
/
2
+
0.5
)
.*
recgeo
(
1
)
.
voxsize
;
fedpars
.
vox000sam
=
grain
.
center
-
(
ngv
/
2
)
.*
recgeo
(
1
)
.
voxsize
;
% Elements' positions in the sample volume in mm!
% Elements' positions in the sample volume in mm!
[
gv
.
cs
,
gv
.
d
]
=
compute_voxel_centers
(
gv
,
dmvol
,
fedpars
,
recgeo
(
1
));
[
gv
.
cs
,
gv
.
d
]
=
compute_voxel_centers
(
gv
,
dmvol
,
fedpars
,
recgeo
(
1
));
...
@@ -228,8 +233,8 @@ for n = 1:num_dets
...
@@ -228,8 +233,8 @@ for n = 1:num_dets
stack
=
cat
(
3
,
stack
{:});
stack
=
cat
(
3
,
stack
{:});
vol_size
=
gtGeoSam2Sam
(
grsize
,
recgeo
(
1
),
recgeo
(
n
),
1
);
vol_size
=
gtGeoSam2Sam
(
grsize
,
recgeo
(
1
),
recgeo
(
n
),
1
);
vol_size
=
ceil
(
vol_size
*
1.2
);
vol_size
=
ceil
(
vol_size
*
parameters
.
fsim
.
oversizeVol
);
if
(
is_nearfield
)
if
(
is_nearfield
&&
size
(
intvol
,
3
)
==
2
)
% This handles the 2D case
vol_size
(
3
)
=
max
(
vol_size
(
3
),
8
);
vol_size
(
3
)
=
max
(
vol_size
(
3
),
8
);
end
end
...
...
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