Skip to content

Commit

Permalink
Fixing devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaem committed Aug 23, 2024
1 parent 7c113d1 commit 12cf3ba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
}
},
"postCreateCommand": [
"pyver=$(python -c 'import sys;print(sys.version[:(len(str(sys.version_info.major))+len(str(sys.version_info.minor))+1)])')",
"echo 'source activate l2copenblas' >> ~/.bashrc",
"echo 'export PATH=/workspaces/Legendre-to-Chebyshev/src/build-install/bin:$PATH' >> ~/.bashrc",
"echo 'export LD_LIBRARY_PATH=/workspaces/Legendre-to-Chebyshev/src/build-install/lib:$LD_LIBRARY_PATH' >> ~/.bashrc",
"echo 'export PYTHONPATH=/workspaces/Legendre-to-Chebyshev/src/build-install/lib/python$(pyver)/site-packages:$PYTHONPATH' >> ~/.bashrc"]
echo 'pyver=$(python -c "import sys;print(sys.version[:(len(str(sys.version_info.major))+len(str(sys.version_info.minor))+1)])")' >> ~/.bashrc,
echo 'source activate l2copenblas' >> ~/.bashrc,
echo 'export PATH=/workspaces/Legendre-to-Chebyshev/src/build-install/bin:$PATH' >> ~/.bashrc,
echo 'export LD_LIBRARY_PATH=/workspaces/Legendre-to-Chebyshev/src/build-install/lib:$LD_LIBRARY_PATH' >> ~/.bashrc,
echo 'export PYTHONPATH=/workspaces/Legendre-to-Chebyshev/src/build-install/lib/python${pyver}/site-packages:$PYTHONPATH' >> ~/.bashrc
]
}
4 changes: 2 additions & 2 deletions src/results/figure4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
# new generated python file (see filename below).

rerun_fmm="no"
rerun_dct="yes"
rerun_direct="yes"
rerun_dct="no"
rerun_direct="no"
rerun_plan="no"

smax=32
Expand Down
2 changes: 1 addition & 1 deletion src/results/figure5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# new generated python file (see filename below).

rerun_fmm="no"
rerun_dct="yes"
rerun_dct="no"
smax=32
model=0

Expand Down
2 changes: 1 addition & 1 deletion src/results/table1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
la = "\\begin{tabular}{ccccc}\n"
la += " N & L2C (m) & L2C (n) & C2L (m) & C2L (n) \\\\ \n"
la += "\\hline \n"
for n in range(1, 6):
for n in range(1, 9):
N = s * 2**(n+2)
h0 = subprocess.check_output(f"l2cprec -N{N} -d0 -a1 -n1 -R1", shell=True)
h1 = subprocess.check_output(f"l2cprec -N{N} -d1 -a1 -n1 -R1", shell=True)
Expand Down

0 comments on commit 12cf3ba

Please sign in to comment.