Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
EFT-5p
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
zhao
EFT-5p
Commits
5cf0bdc9
Commit
5cf0bdc9
authored
7 years ago
by
Thorsten Ohl
Browse files
Options
Downloads
Patches
Plain Diff
tho/UFO2: misc [ci skip]
parent
ca9428b2
Branches
tho/UFO2
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
omega/src/UFO_targets.ml
+11
-8
11 additions, 8 deletions
omega/src/UFO_targets.ml
with
11 additions
and
8 deletions
omega/src/UFO_targets.ml
+
11
−
8
View file @
5cf0bdc9
...
...
@@ -948,7 +948,7 @@ module Fortran : T =
" ! %s = %s"
name
(
F
.
dirac_string_to_string
ds
.
F
.
atom
);
nl
()
;
let
gamma
=
F
.
dirac_string_to_matrix
(
fun
_
->
-
1
)
ds
.
F
.
atom
in
dirac_sandwich_to_fortran
"ds"
bra
gamma
ket
;
nl
()
;
dirac_sandwich_to_fortran
name
bra
gamma
ket
;
nl
()
;
(
name
,
[]
)
|
indices
->
printf
...
...
@@ -995,12 +995,15 @@ module Fortran : T =
(
fun
indent
->
printf
"%*ssum = sum + 1"
indent
""
;
List
.
iter
(
fun
(
name
,
indices
)
->
printf
" * %s(%s)"
name
(
String
.
concat
","
(
List
.
map
index_variable
indices
)))
contractions
)
(
function
|
(
name
,
[]
)
->
printf
" * %s"
name
|
(
name
,
indices
)
->
printf
" * %s(%s)"
name
(
String
.
concat
","
(
List
.
map
index_variable
indices
)))
contractions
);
nl
()
let
fusion_to_fortran
wfs
fusion
=
contract_indices
...
...
@@ -1052,7 +1055,7 @@ module Fortran : T =
end
;
printf
" ! %s"
(
unparse
fusion
);
nl
()
;
printf
" @[<2>%s = ... "
wfs
.
(
0
)
.
name
;
nl
()
;
List
.
iter
(
fusion_to_fortran
wfs
)
fusion
;
nl
()
;
List
.
iter
(
fusion_to_fortran
wfs
)
fusion
;
printf
"end function %s"
prefix
;
nl
()
;
()
...
...
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