This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is version 2.0 of the script to install Pyclaw and dependencies on Shaheen | |
# Authors: Aron Ahmadia, Damian San Roman | |
# Collaborators: David Ketcheson, Lisandro Dalcin | |
# ------------------------------------------------------------------------------ # | |
# This version uses github and bitbucket sources, alternatively you may select | |
# non-git sources, supported via wget | |
# ------------------------------------------------------------------------------ # | |
# ------------------------------------------------------------------------------ # | |
echo "\nPrep/Setup" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is version 2.0 of the script to install Pyclaw and dependencies on linux PC | |
# Authors: Aron Ahmadia, Damian San Roman | |
# Collaborators: David Ketcheson, Lisandro Dalcin | |
# ------------------------------------------------------------------------------ # | |
# This version uses github and bitbucket sources, alternatively you may select | |
# non-git sources, supported via wget | |
# ------------------------------------------------------------------------------ # | |
# ------------------------------------------------------------------------------ # | |
echo "\PETSc + PETSc4py Setup" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def verify_classic_sharp(claw1,claw2,p,base_name): | |
import os | |
import numpy as np | |
pfinal1 = claw1.frames[claw1.num_output_times].state.get_q_global() | |
pfinal2 = claw2.frames[claw2.num_output_times].state.get_q_global() | |
grid = claw1.solution.state.grid | |
plot_claws(grid.x.centers,pfinal1[0,:,0,0],pfinal2[0,:,0,0],base_name+'_x_'+str(2**p)) | |
plot_claws(grid.y.centers,pfinal1[0,0,:,0],pfinal2[0,0,:,0],base_name+'_y_'+str(2**p)) |
NewerOlder