Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyloc3d
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
Package 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
Florian Atteneder
pyloc3d
Commits
dec2c606
Commit
dec2c606
authored
1 year ago
by
Florian Atteneder
Browse files
Options
Downloads
Patches
Plain Diff
don't use legacy format for ahloc
parent
49dbc96d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyloc3d.py
+13
-2
13 additions, 2 deletions
pyloc3d.py
test.par
+2
-2
2 additions, 2 deletions
test.par
with
15 additions
and
4 deletions
pyloc3d.py
+
13
−
2
View file @
dec2c606
#!/usr/bin/env python3
# import os
# os.environ['LD_LIBRARY_PATH'] = "/ssd/du23lag/python/ahloc3d"
from
_ahloc_3d
import
ffi
,
lib
from
ctypes
import
create_string_buffer
parfile
=
"
.
./ahloc3d
/test.par
"
parfile
=
"
./test.par
"
cstr_parfile
=
parfile
.
encode
(
'
utf8
'
)
lib
.
setup_output
(
cstr_parfile
)
lib
.
ReadParfile
(
cstr_parfile
)
wus
=
lib
.
read_work
()
lib
.
read_work
()
# print("legacy_data = ", lib.legacy_data)
lib
.
stdout_verbose
=
0
# print("stdout_verbose = ", lib.stdout_verbose)
n_work
=
lib
.
n_work
work
=
lib
.
work
for
i
in
range
(
n_work
):
lib
.
load_data_and_derivatives
(
work
[
i
])
This diff is collapsed.
Click to expand it.
test.par
+
2
−
2
View file @
dec2c606
...
...
@@ -15,10 +15,10 @@ sym.mode = AXISYM
test.Kerr = 0
test.Kerr.a = 0.0
AHloc.datadir = /
home/sarah/data/new_ah_test/old_data
/output_ah
AHloc.datadir = /
ssd/du23lag/python
/output_ah
AHloc.outdir = old_data_new_ahloc
data.legacy =
1
data.legacy =
0
output.flowstatus = 1
output.flowstatus.every = 100
...
...
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