Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
CrysFML
Commits
3241cf67
Commit
3241cf67
authored
Oct 20, 2021
by
juan rodriguez-carvajal
Browse files
Correcting a bug in CFML_Crystal_Metrics.f90 ... (writing)
parent
eddca0d1
Pipeline
#11646
passed with stages
in 13 minutes and 21 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Src/CFML_Crystal_Metrics.f90
View file @
3241cf67
...
...
@@ -2253,7 +2253,7 @@
CarType
=
U_case
(
adjustl
(
CarTypeIn
))
!> Check for valid input
if
(
len_trim
(
CarType
)
==
2
)
then
!two symbols input
if
(
CarType
/
=
'CA'
.and.
CarType
/
=
'A
B
'
.and.
CarType
/
=
'BC'
.and.
CarType
/
=
'BA'
.and.
CarType
/
=
'CB'
)
then
if
(
CarType
/
=
'CA'
.and.
CarType
/
=
'A
C
'
.and.
CarType
/
=
'BC'
.and.
CarType
/
=
'BA'
.and.
CarType
/
=
'CB'
)
then
err_crys
=
.true.
err_crys_mess
=
'Invalid CarType in call to Get_Cryst_Orthog_Matrix. Reset to default'
CarType
=
'CA'
!default: c//Z, a*//X
...
...
@@ -2265,13 +2265,13 @@
case
(
'A'
)
CarType
(
2
:
2
)
=
'C'
case
(
'B'
)
CarType
(
2
:
2
)
=
'C'
!defaults to c* // Z for this case
CarType
(
2
:
2
)
=
'C'
!defaults to c* // Z for this case
(Carpenter)
case
default
CarType
=
'CA'
!default because invalid first character
CarType
=
'CA'
!default because invalid first character
end
select
endif
endif
if
(
len_trim
(
CarType
)
==
0
)
CarType
=
'CA'
!default: c//Z, a*//X
if
(
len_trim
(
CarType
)
==
0
)
CarType
=
'CA'
!default: c//Z, a*//X
!> Setting of matrix
...
...
@@ -2400,7 +2400,7 @@
CarType
=
U_case
(
adjustl
(
CarTypeIn
))
!> Check for valid input
if
(
len_trim
(
CarType
)
==
2
)
then
!two symbols input
if
(
CarType
/
=
'CA'
.and.
CarType
/
=
'A
B
'
.and.
CarType
/
=
'BC'
.and.
CarType
/
=
'BA'
.and.
CarType
/
=
'CB'
)
then
if
(
CarType
/
=
'CA'
.and.
CarType
/
=
'A
C
'
.and.
CarType
/
=
'BC'
.and.
CarType
/
=
'BA'
.and.
CarType
/
=
'CB'
)
then
err_crys
=
.true.
err_crys_mess
=
'Invalid CarType in call to Get_Deriv_Orth_Cell'
return
...
...
@@ -3627,16 +3627,17 @@
select
case
(
Celda
%
CartType
)
case
(
'BA'
)
! Angel & Brown setting
Write
(
unit
=
iunit
,
fmt
=
"(/,a,/)"
)
" => Cartesian frame: y // b; z is in the bc-plane; x is y ^ z = a* "
case
(
'BA'
)
! Angel & Brown setting
Write
(
unit
=
iunit
,
fmt
=
"(/,a,/)"
)
" => Cartesian frame: y // b; z is in the bc-plane; x is y ^ z = a* "
case
(
'BC'
)
! Carpenter setting
Write
(
unit
=
iunit
,
fmt
=
"(/,a,/)"
)
" => Cartesian frame: y // b; x is in the ab-plane; z is x ^ y = c* "
case
(
'
B
C'
)
!
Carpen
te
r
setting
Write
(
unit
=
iunit
,
fmt
=
"(/,a,/)"
)
" => Cartesian frame:
y
//
b
;
x
is
in the ab-plane; z is x ^ y = c*
"
case
(
'
A
C'
)
!
previous alterna
te setting
Write
(
unit
=
iunit
,
fmt
=
"(/,a,/)"
)
" => Cartesian frame:
x
//
a
;
z
is
along c*; y is within the ab-plane
"
case
(
'AB'
)
! previous alternate setting
Write
(
unit
=
iunit
,
fmt
=
"(/,a,/)"
)
" => Cartesian frame: x // a; z is in the ac-plane; y is x ^ z = b* "
case
default
! 'CA'
Write
(
unit
=
iunit
,
fmt
=
"(/,a,/)"
)
" => Cartesian frame: z // c; y is in the bc-plane; x is y ^ z = a* "
case
default
! 'CA'
Write
(
unit
=
iunit
,
fmt
=
"(/,a,/)"
)
" => Cartesian frame: z // c; y is in the bc-plane; x is along y ^ z = a* "
end
select
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment