Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Arepo
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Volker Springel
Arepo
Commits
ad5a83ad
Commit
ad5a83ad
authored
2 years ago
by
Rainer Weinberger
Browse files
Options
Downloads
Patches
Plain Diff
update examples check out MUSIC via git, not hg
parent
a8ca0ceb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/cosmo_box_gravity_only_3d/create.py
+2
-2
2 additions, 2 deletions
examples/cosmo_box_gravity_only_3d/create.py
examples/cosmo_box_star_formation_3d/create.py
+2
-2
2 additions, 2 deletions
examples/cosmo_box_star_formation_3d/create.py
with
4 additions
and
4 deletions
examples/cosmo_box_gravity_only_3d/create.py
+
2
−
2
View file @
ad5a83ad
...
...
@@ -30,9 +30,9 @@ if ic_creation == 'copy':
elif
ic_creation
==
'
music
'
:
## create new initial conditions with the MUSIC code
status
=
call
([
'
h
g
'
,
'
clone
'
,
'
https://bitbucket.org/ohahn/music
'
,
simulation_directory
+
'
/music
'
])
status
=
call
([
'
g
it
'
,
'
clone
'
,
'
https://bitbucket.org/ohahn/music
'
,
simulation_directory
+
'
/music
'
])
if
status
!=
0
:
print
(
'
CREATE: ERROR:
h
g clone failed!
'
)
print
(
'
CREATE: ERROR: g
it
clone failed!
'
)
sys
.
exit
(
status
)
cwd
=
os
.
getcwd
()
os
.
chdir
(
simulation_directory
+
'
/music/
'
)
...
...
This diff is collapsed.
Click to expand it.
examples/cosmo_box_star_formation_3d/create.py
+
2
−
2
View file @
ad5a83ad
...
...
@@ -26,9 +26,9 @@ print("create.py " + simulation_directory)
if
ic_creation
==
'
copy
'
:
call
([
'
cp
'
,
simulation_directory
+
'
/L8n32/ics
'
,
simulation_directory
+
'
/ics
'
])
elif
ic_creation
==
'
music
'
:
status
=
call
([
'
h
g
'
,
'
clone
'
,
'
https://bitbucket.org/ohahn/music
'
,
simulation_directory
+
'
/music
'
])
status
=
call
([
'
g
it
'
,
'
clone
'
,
'
https://bitbucket.org/ohahn/music
'
,
simulation_directory
+
'
/music
'
])
if
status
!=
0
:
print
(
'
CREATE: ERROR:
h
g clone failed!
'
)
print
(
'
CREATE: ERROR: g
it
clone failed!
'
)
sys
.
exit
(
status
)
cwd
=
os
.
getcwd
()
os
.
chdir
(
simulation_directory
+
'
/music/
'
)
...
...
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