Skip to content

Commit

Permalink
Fixed input.json path
Browse files Browse the repository at this point in the history
  • Loading branch information
jcandy committed Oct 29, 2024
1 parent 24a3c5b commit 9a29c7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cgyro/bin/cgyro_json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/usr/bin/env python

import os.path
import os
import sys
import json
import numpy as np
from pygacode.cgyro import data

sim = data.cgyrodata('./')

myroot = os.environ['GACODE_ROOT']

# Sanity check:
if not os.path.isfile('input.cgyro.gen'):
print('cgyro_json: (ERROR) input.cgyro.gen missing')
Expand Down Expand Up @@ -36,7 +38,7 @@ for i in range(sim.n_species):

d = {}

with open('/home/candy/GIT/gacode/cgyro/bin/input.json','r') as file:
with open(myroot+'/cgyro/bin/input.json','r') as file:
default = json.load(file)

# Determine non-default values in input.cgyro
Expand Down

0 comments on commit 9a29c7c

Please sign in to comment.