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
4c2d2217
Commit
4c2d2217
authored
10 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
initialise_gt: temporay fix for error in case MTex is no installed.
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
0e2e38f2
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
initialise_gt.m
+12
-7
12 additions, 7 deletions
initialise_gt.m
with
12 additions
and
7 deletions
initialise_gt.m
+
12
−
7
View file @
4c2d2217
...
...
@@ -226,7 +226,7 @@ function initialise_gt(ignore_id19)
disp
(
'Finished adding.'
);
disp
(
'Checking compiled functions...'
);
current
D
ir
=
pwd
;
current
_d
ir
=
pwd
;
cd
(
fullfile
(
GT_MATLAB_HOME
,
'bin'
,
'scripts'
));
mFiles
=
compile
(
false
,
false
);
funcNames
=
fieldnames
(
mFiles
);
...
...
@@ -247,11 +247,11 @@ function initialise_gt(ignore_id19)
fprintf
(
msg
);
end
end
cd
(
current
D
ir
);
cd
(
current
_d
ir
);
disp
(
'Finished checking.'
);
% Warning when launched on a Windows PC
if
ispc
if
(
ispc
())
% Rendering: the default renderer may have to be changed
disp
(
'If you are running the code on a Windows PC and experiencing'
)
disp
(
'problems with colormaps or graphics resolution, you may have to'
)
...
...
@@ -264,14 +264,19 @@ function initialise_gt(ignore_id19)
disp
(
' '
)
cd
(
fullfile
(
GT_MATLAB_HOME
,
'matGeom'
));
setupMatGeom
();
cd
(
current
D
ir
);
cd
(
current
_d
ir
);
disp
(
' '
)
% load MTex toolbox if logged on rnice6-0101
% it has been installed only on this host
% to be generalized
cd
(
'/sware/com/matlab-tbx/mtex-3.4.2/'
);
startup_mtex
();
cd
(
currentDir
);
mtex_dir
=
'/sware/com/matlab-tbx/mtex-3.4.2/'
;
if
(
exist
(
mtex_dir
,
'dir'
))
cd
(
mtex_dir
);
startup_mtex
();
cd
(
current_dir
);
else
warning
(
'MTex:not_installed'
,
'MTex toolbox is not installed'
)
end
disp
([
boldColor
'To report a bug, create a ticket at https://sourceforge.net/p/dct/tickets'
defaultColor
]);
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