Skip to content

Commit

Permalink
Generalize kore2sprouts
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkitBarik committed Aug 21, 2023
1 parent beb479b commit c4d6d98
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/kore2sprouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,20 @@ def main(Anpz):

N = par.N

ll = int(A.shape[0]/(4*N))
neq = 3

gb = np.array([4,2,2,2]) # the basis order for each section
ll = int(A.shape[0]/(neq*N))

gb = np.array([4,2,2]) # the basis order for each section

N1 = N-gb # number of rows without bc's for each section

nbc = 2*np.sum(gb) # total number of bc rows
nbc = ll*np.sum(gb) # total number of bc rows

Aout = ss.dok_matrix(A.shape, dtype=complex)


for j in range(4): #loop over the four sections
for j in range(neq): #loop over the four sections

for k in range(ll):

Expand Down

0 comments on commit c4d6d98

Please sign in to comment.