The following debugging information was generated by Atom Beautify
on Sun Jun 04 2017 23:20:47 GMT-0400 (EDT)
.
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
import fipy as fp | |
solver = fp.LinearGMRESSolver() | |
Lx = 1. | |
nx = 1000 | |
dx = Lx/nx | |
mesh = fp.Grid1D(nx=nx, dx=dx) | |
phi = fp.CellVariable(name="elec. potential", mesh=mesh, value=0.) | |
c_m = fp.CellVariable(name="conc.", mesh=mesh, value=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
% Code for http://stackoverflow.com/a/37982813/486919 | |
function schrodinger_equation | |
close all | |
clc | |
psi0 = [0;1]; | |
hbar = 1; | |
% t = 0:1:100; |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
# ~/.profile: executed by the command interpreter for login shells. | |
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | |
# exists. | |
# see /usr/share/doc/bash/examples/startup-files for examples. | |
# the files are located in the bash-doc package. | |
# the default umask is set in /etc/profile; for setting the umask | |
# for ssh logins, install and configure the libpam-umask package. | |
#umask 022 |
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
#!/usr/bin/env python3 | |
import math | |
import random | |
from string import digits, ascii_letters, punctuation | |
import sys | |
char_set = digits + ascii_letters + punctuation + ' ' | |
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
#!/bin/bash | |
cd ~/svn | |
svn checkout svn://svn.code.sf.net/p/daetools/code/trunk daetools-code | |
cd daetools-code | |
chmod +x install_dependencies_linux.sh compile_libraries_linux.sh compile_linux.sh | |
./install_dependencies_linux.sh | |
./compile_libraries_linux.sh --with-python-version 3.5 boost ref_blas_lapack umfpack idas superlu superlu_mt bonmin nlopt # compile everything except Trilinos and deal.II | |
./compile_linux.sh --with-python-version 3.5 dae superlu superlu_mt ipopt bonmin nlopt # compile everything except Trilinos and deal.II |
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
#!/usr/bin/env python | |
import sys | |
import time | |
def main(number): | |
prime_numbers = [2] | |
for i in range(3, number, 2): | |
if is_prime(i, prime_numbers): |
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
$ glxinfo | grep version | |
server glx version string: 1.4 | |
client glx version string: 1.4 | |
GLX version: 1.4 | |
Max core profile version: 3.3 | |
Max compat profile version: 3.0 | |
Max GLES1 profile version: 1.1 | |
Max GLES[23] profile version: 3.0 | |
OpenGL core profile version string: 3.3 (Core Profile) Mesa 12.0.3 | |
OpenGL core profile shading language version string: 3.30 |
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
$ matlab -nodesktop -nosplash -softwareopengl | |
MATLAB is selecting SOFTWARE OPENGL rendering. | |
< M A T L A B (R) > | |
Copyright 1984-2016 The MathWorks, Inc. | |
R2016b (9.1.0.441655) 64-bit (glnxa64) | |
September 7, 2016 | |
To get started, type one of these: helpwin, helpdesk, or demo. |
OlderNewer