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
$ time make -j9 | |
[ 0%] [ 1%] [ 1%] [ 1%] [ 2%] [ 2%] Building CXX object src/CMakeFiles/hermes2d-real-debug.dir/hash.cpp.o | |
Building CXX object src/CMakeFiles/hermes2d-cplx-debug.dir/hash.cpp.o | |
[ 2%] [ 3%] [ 3%] Building CXX object src/CMakeFiles/hermes2d-cplx-debug.dir/mesh.cpp.o | |
Building CXX object src/CMakeFiles/hermes2d-cplx-debug.dir/regul.cpp.o | |
Building CXX object src/CMakeFiles/hermes2d-real-debug.dir/mesh.cpp.o | |
Building CXX object src/CMakeFiles/hermes2d-real-debug.dir/regul.cpp.o | |
Building CXX object src/CMakeFiles/hermes2d-cplx-debug.dir/refmap.cpp.o | |
Building CXX object src/CMakeFiles/hermes2d-cplx-debug.dir/curved.cpp.o | |
Building CXX object src/CMakeFiles/hermes2d-real-debug.dir/refmap.cpp.o |
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/python | |
# -*- coding: iso-8859-1 -*- | |
# | |
# progressbar - Text progressbar library for python | |
# Copyright (c) 2008 Nilton Volpato | |
# | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: |
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
$ python examples/intermediate/coupled_cluster.py | |
Calculates the Coupled-Cluster energy- and amplitude equations | |
See 'An Introduction to Coupled Cluster Theory' by | |
T. Daniel Crawford and Henry F. Schaefer III | |
http://www.ccc.uga.edu/lec_top/cc/html/review.html | |
Using the hamiltonian: f^{p}_{q} \left\{a^\dagger_{p} a_{q}\right\} + \frac{1}{4} v^{pq}_{sr} \left\{a^\dagger_{p} a^\dagger_{q} a_{r} a_{s}\right\} | |
Calculating 4 nested commutators | |
commutator 1... |
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
mesh = """ | |
a = 1.0 # size of the mesh | |
b = sqrt(2)/2 | |
vertices = | |
{ | |
{ 0, -a }, # vertex 0 | |
{ a, -a }, # vertex 1 | |
{ -a, 0 }, # vertex 2 | |
{ 0, 0 }, # vertex 3 |
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
$ git grep locals | |
bin/ifemhub: def __init__(self, json, locals=None, filename="<console>", | |
bin/ifemhub: code.InteractiveConsole.__init__(self, locals, filename) | |
onlinelab/service/engine/python/interpreter.py: del self.locals[' | |
onlinelab/service/engine/python/interpreter.py: plots = self.locals.g | |
onlinelab/service/engine/python/interpreter.py: js = self.locals.get( | |
onlinelab/service/engine/python/namespace.py: def __init__(self, locals={}, d | |
onlinelab/service/engine/python/namespace.py: if locals is not None: | |
onlinelab/service/engine/python/namespace.py: self.update(locals) | |
(END) |
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
[user] | |
name = Ondrej Certik | |
email = [email protected] | |
[color] | |
ui = auto | |
interactive = true | |
[alias] | |
ci = commit |
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
[100%] Building CXX object tutorial/52-eigenvalue-h2p/CMakeFiles/eigenvalue-h2p.dir/forms.cpp.o | |
/home/ondrej/repos/hermes/hermes2d/tutorial/52-eigenvalue-h2p/forms.cpp:3: error: ‘Func’ has not been declared | |
/home/ondrej/repos/hermes/hermes2d/tutorial/52-eigenvalue-h2p/forms.cpp:3: error: expected ‘,’ or ‘...’ before ‘<’ token | |
/home/ondrej/repos/hermes/hermes2d/tutorial/52-eigenvalue-h2p/forms.cpp: In function ‘Scalar bilinear_form_H(int, double*, int)’: | |
/home/ondrej/repos/hermes/hermes2d/tutorial/52-eigenvalue-h2p/forms.cpp:9: error: ‘e’ was not declared in this scope | |
/home/ondrej/repos/hermes/hermes2d/tutorial/52-eigenvalue-h2p/forms.cpp:11: error: there are no arguments to ‘wfun’ that depend on a template parameter, so a declaration of ‘wfun’ must be available | |
/home/ondrej/repos/hermes/hermes2d/tutorial/52-eigenvalue-h2p/forms.cpp:11: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) | |
/home/ondrej/repos/hermes/hermes2d/tutorial/52-eigenvalu |
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
$ ./eigenvalue-h2p | |
vertex_id_nucleus=226 | |
ndof = 5020 | |
Total running time for assembling matrices : 81.0938 s | |
Total running time for writing matrices to disk : 16.9294 s | |
Calling JDSYM... | |
solveGenEigenFromMtx.py:17: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr. | |
k_conv, lmbd, Q, it, itall = jdsym.jdsym(A, M, K, eigenval_num, target_value, jdtol, max_iter, itsolvers.minres) | |
solveGenEigenFromMtx.py:17: DeprecationWarning: PyArray_FromDims: use PyArray_SimpleNew. | |
k_conv, lmbd, Q, it, itall = jdsym.jdsym(A, M, K, eigenval_num, target_value, jdtol, max_iter, itsolvers.minres) |
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
<!-- SceneJS library --> | |
<script src="scenejs.js"></script> | |
<!-- JSON airplane model --> | |
<script src="airplane-model.js"></script> | |
<!-- WebGL canvas --> |
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
$ python examples/advanced/relativity.py | |
Initial metric: | |
⎡ ν(r) ⎤ | |
⎢-ℯ 0 0 0 ⎥ | |
⎢ ⎥ | |
⎢ λ(r) ⎥ | |
⎢ 0 ℯ 0 0 ⎥ | |
⎢ ⎥ | |
⎢ 2 ⎥ | |
⎢ 0 0 r 0 ⎥ |