Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
finesse
simtools
Commits
5133d8e4
Commit
5133d8e4
authored
11 years ago
by
Charlotte Bond
Browse files
Options
Downloads
Patches
Plain Diff
err messages
parent
49cdfe6b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/new/finesse/prepare_files/FT_read_mirror_parameters_from_blocks.m
+10
-10
10 additions, 10 deletions
...sse/prepare_files/FT_read_mirror_parameters_from_blocks.m
with
10 additions
and
10 deletions
src/new/finesse/prepare_files/FT_read_mirror_parameters_from_blocks.m
+
10
−
10
View file @
5133d8e4
...
@@ -35,31 +35,31 @@ function [R,T,L,phi] = FT_read_mirror_parameters_from_blocks(blocks,mirror)
...
@@ -35,31 +35,31 @@ function [R,T,L,phi] = FT_read_mirror_parameters_from_blocks(blocks,mirror)
if
length
(
k
)
>
0
if
length
(
k
)
>
0
% Read constant value
% Read constant value
tmp_param
=
FT_remove_phrase_from_string
(
tmp_param
,
'$'
);
tmp_param
=
FT_remove_phrase_from_string
(
tmp_param
,
'$'
);
params
{
i
-
2
}
=
num2str
(
FT_read_const_from_blocks
(
blocks
,
tmp_param
)
)
;
params
(
i
-
2
)
=
FT_read_const_from_blocks
(
blocks
,
tmp_param
);
else
else
% Store parameter value
% Store parameter value
params
{
i
-
2
}
=
tmp_param
;
params
(
i
-
2
)
=
FT_kat_str2num
(
tmp_param
)
;
end
end
end
end
% Convert from string to number, including checking for FINESSE units,
% Convert from string to number, including checking for FINESSE units,
% i.e. u for micro etc.
% i.e. u for micro etc.
phi
=
FT_kat_str2num
(
params
{
3
}
);
phi
=
params
(
3
);
% Convert reflection, transmission and loss coefficients to numbers and
% Convert reflection, transmission and loss coefficients to numbers and
% calculating the final parameter (depending on which mirror type, 0,
% calculating the final parameter (depending on which mirror type, 0,
% 1 or 2 is used
% 1 or 2 is used
if
mtype
==
0
if
mtype
==
0
R
=
FT_kat_str2num
(
params
{
1
}
);
R
=
params
(
1
);
T
=
FT_kat_str2num
(
params
{
2
}
);
T
=
params
(
2
);
L
=
1
-
T
-
R
;
L
=
1
-
T
-
R
;
elseif
mtype
==
1
elseif
mtype
==
1
T
=
FT_kat_str2num
(
params
{
1
}
);
T
=
params
(
1
);
L
=
FT_kat_str2num
(
params
{
2
}
);
L
=
params
(
2
);
R
=
1
-
T
-
L
;
R
=
1
-
T
-
L
;
elseif
mtype
==
2
elseif
mtype
==
2
R
=
FT_kat_str2num
(
params
{
1
}
);
R
=
params
(
1
);
L
=
FT_kat_str2num
(
params
{
2
}
);
L
=
params
(
2
);
T
=
1
-
R
-
L
;
T
=
1
-
R
-
L
;
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