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
| #define NUM_GHOST 2 | |
| #define NUM_STATES 1 | |
| #define NUM_WAVES 1 | |
| void advection_rp(uniform double* q_left, uniform double* q_right, | |
| uniform double* amdq, uniform double* apdq, uniform double* wave, uniform double* s) | |
| { | |
| // Wave and speed | |
| wave[0] = q_right[0] - q_left[0]; | |
| s[0] = 1.0; |
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 _rev_top_sort (self, dag): | |
| """Simple reverse top sorter given dag | |
| dag: a dictionary with node:(neighbors) | |
| returns a list of nodes in reversed topological order. | |
| Used to determine update sequence. | |
| """ |
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
| # Set the prompt | |
| export CLICOLOR=1 | |
| source $HOME/.git-completion.sh | |
| export GIT_PS1_SHOWDIRTYSTATE=1 | |
| export GIT_PS1_SHOWSTASHSTATE=1 | |
| win-divider() { | |
| s="_" | |
| o="" |
NewerOlder