You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2024. It is now read-only.
I've had issues with running the following excerpt of code, which was due to providing a relative path instead of the absolute path for file_to_write. We thought that this may be a useful test for calling writeFile and distFile consecutively.
import numpy as np
from parflowio.pyParflowio import PFData
file_to_write = './Flow_Barrier_X.pfb'
p = 1
q = 1
r = 1
FBx_data = np.full((20, 20, 20), 1.0)
for i in range(20):
for j in range(20):
FBx_data[i, j, 9] = 0.001
FBx_data_pfb = PFData(FBx_data)
FBx_data_pfb.writeFile(file_to_write)
FBx_data_pfb.close()
pfb_data = PFData(file_to_write)
pfb_data.distFile(p, q, r, file_to_write)