Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EELS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Karl-Michael Schindler
EELS2
Commits
9b74314e
Commit
9b74314e
authored
9 months ago
by
kamischi
Browse files
Options
Downloads
Patches
Plain Diff
Update seteps.f90
remove sumnos and add the anisotropic uniaxial substrate layer
parent
01df70fc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testprograms/NewSeteps/seteps.f90
+13
-4
13 additions, 4 deletions
testprograms/NewSeteps/seteps.f90
with
13 additions
and
4 deletions
testprograms/NewSeteps/seteps.f90
+
13
−
4
View file @
9b74314e
module
seteps_mod
contains
subroutine
seteps
(
neps
,
nos
,
oscType
,
osc
,
epsinf
,
wn
,
name
,
eps
,
layers
)
use
oscillator_mod
implicit
none
integer
,
intent
(
in
)
::
neps
,
nos
(:),
oscType
(:)
double precision
,
intent
(
in
)
::
osc
(:,
:),
epsinf
(:),
wn
character
(
len
=
10
),
intent
(
in
)
::
name
(:)
double
complex
,
intent
(
in
out
)
::
eps
(:)
integer
,
intent
(
in
)
::
layers
integer
::
i
,
j
,
k
,
sumnos
integer
::
i
,
j
,
k
double
complex
::
one
,
nomi
,
deno
,
addeps
double precision
::
wn2
,
b
sumnos
=
sum
(
nos
)
write
(
*
,
*
)
'neps: '
,
neps
write
(
*
,
*
)
'nos: '
,
nos
write
(
*
,
*
)
'Oscillators:'
do
i
=
1
,
sumnos
do
i
=
1
,
sum
(
nos
)
select
case
(
oscType
(
i
))
case
(
Lorentz
)
write
(
*
,
'(A)'
)
'Lorentz'
...
...
@@ -55,13 +57,20 @@ subroutine seteps(neps, nos, oscType, osc, epsinf, wn, name, eps, layers)
case
(
Drude
)
addeps
=
addeps
-
dcmplx
(
osc
(
1
,
k
)
**
2
,
wn
*
(
osc
(
2
,
k
)
-
osc
(
2
,
k
)))
/
dcmplx
(
wn2
,
wn
*
osc
(
2
,
j
))
case
default
write
(
*
,
'(A)'
)
'*** Error in oscillator type!'
write
(
*
,
'(A)'
)
'*** Error in oscillator type!
***
'
end
select
k
=
k
+
1
eps
(
i
)
=
epsinf
(
i
)
*
(
nomi
/
deno
+
addeps
)
enddo
enddo
if
(
neps
==
layers
+
1
)
then
! The substrate is an anisotropic uniaxial material
eps
(
layers
)
=
sqrt
(
eps
(
layers
)
*
eps
(
layers
+
1
))
if
(
aimag
(
eps
(
layers
))
<
0.0
)
then
eps
(
layers
)
=
-
eps
(
layers
)
endif
endif
return
end
subroutine
seteps
end
module
seteps_mod
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