Skip to content

Instantly share code, notes, and snippets.

David dajuno

  • Santiago/Berlin
Block or report user

Report or block dajuno

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View square.mesh
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
142
1 0 0 0
2 1 0 0
3 1 1 0
4 0 1 0
5 0.09999999999981467 0 0
@dajuno
dajuno / tmux_local_install.sh
Last active Sep 29, 2017 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
View tmux_local_install.sh
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/.local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.5
@dajuno
dajuno / print_dict.py
Created Jun 28, 2016
print nested dict
View print_dict.py
# var 1
for key, val in prms.items():
if type(val) is dict:
for key2, val2 in val.items():
print('\t {0}: {1}'.format(key2, val2))
else:
print('{0}: {1}'.format(key, val))
# var 2
import yaml
View tangential
from dolfin import *
import numpy as np
import mshr
from IPython import embed
from cbcpost.utils.mpi_utils import gather, broadcast
def vec(x): return as_backend_type(x).vec()
def mat(A): return as_backend_type(A).mat()
class NormalRotation(PETScMatrix):
@dajuno
dajuno / build.log
Created Jan 23, 2016
cython build log
View build.log
2016/01/23 09:50:46 - INFO: [package:run_job] running [u'/bin/bash', '_hashdist/build.sh']
2016/01/23 09:50:46 - INFO: [package:run_job] environment:
2016/01/23 09:50:46 - INFO: [package:run_job] {'ARTIFACT': u'/home/dnolte/.hashdist/bld/cython/zb55xazf5kjr',
2016/01/23 09:50:46 - INFO: [package:run_job] 'BASH': u'/bin/bash',
2016/01/23 09:50:46 - INFO: [package:run_job] 'BUILD': u'/home/dnolte/.hashdist/tmp/cython-zb55xazf5kjr',
2016/01/23 09:50:46 - INFO: [package:run_job] 'HASHDIST_CPU_COUNT': '1',
2016/01/23 09:50:46 - INFO: [package:run_job] 'HDIST_CONFIG': '{"gc_roots":"/home/dnolte/.hashdist/gcroots","build_stores":[{"dir":"/home/dnolte/.hashdist/bld"}],"source_caches":[{"dir":"/home/dnolte/.hashdist/src"}],"cache":"/home/dnolte/.hashdist/cache","build_temp":"/home/dnolte/.hashdist/tmp"}',
2016/01/23 09:50:46 - INFO: [package:run_job] 'HDIST_IMPORT': u'patchelf/5ak23gxoswdv2qq7qsm733jx6mpknvlz python/7z56z4cdcuns2ncdbityazni6tpmprte',
2016/01/23 09:50:46 - INFO: [package:run_job] 'H
@dajuno
dajuno / ex_groups_simple.geo
Created Jan 13, 2016
GMSH simple example physical groups
View ex_groups_simple.geo
L = 1;
dx1 = 0.1*L;
Point(1) = {-0.5*L, -0.5*L, -0.5*L, dx1};
Point(2) = { 0.5*L, -0.5*L, -0.5*L, dx1};
Point(3) = { 0.5*L, -0.5*L, 0.5*L, dx1};
Point(4) = {-0.5*L, -0.5*L, 0.5*L, dx1};
Line(1) = {1, 2};
Line(2) = {2, 3};
@dajuno
dajuno / ex_groups.geo
Created Jan 13, 2016
GMSH example physical groups
View ex_groups.geo
L = 1;
dx1 = 0.05*L;
R = 0.398942280*L; /* radius for a circle taking half of the unit square
area */
dx2 = dx1*2*R/L;
Point(1) = {-0.5*L, -0.5*L, -0.5*L, dx1};
Point(2) = { 0.5*L, -0.5*L, -0.5*L, dx1};
Point(3) = { 0.5*L, -0.5*L, 0.5*L, dx1};
Point(4) = {-0.5*L, -0.5*L, 0.5*L, dx1};
View gist:73854439a55f1ab616c3
This file has been truncated, but you can view the full file.
2015/12/17 11:35:49 - WARNING: [package:source_cache] Archive contained a non-ascii path: boost_1_59_0/libs/preprocessor/doc/Appendix A �� An Introduction to Preprocessor Metaprogramming.html. Skipping.
2015/12/17 11:36:15 - INFO: [package:run_job] running [u'/bin/bash', '_hashdist/build.sh']
2015/12/17 11:36:15 - INFO: [package:run_job] environment:
2015/12/17 11:36:15 - INFO: [package:run_job] {'ARTIFACT': u'/home/david/.hashdist/bld/boost/6prs5pnbttax',
2015/12/17 11:36:15 - INFO: [package:run_job] 'BASH': u'/bin/bash',
2015/12/17 11:36:15 - INFO: [package:run_job] 'BUILD': u'/home/david/.hashdist/tmp/boost-6prs5pnbttax',
2015/12/17 11:36:15 - INFO: [package:run_job] u'BZIP2_DIR': u'/home/david/.hashdist/bld/bzip2/x77hkrpcbch3',
2015/12/17 11:36:15 - INFO: [package:run_job] u'BZIP2_ID': u'bzip2/x77hkrpcbch3nzwscynb4s6xzs3kaegs',
2015/12/17 11:36:15 - INFO: [package:run_job] 'HASHDIST_CPU_COUNT': '4',
@dajuno
dajuno / build.log
Created Nov 6, 2015
build petsc standalone
View build.log
2015/11/06 14:03:21 - INFO: [package:run_job] running [u'/bin/bash', '_hashdist/build.sh']
2015/11/06 14:03:21 - INFO: [package:run_job] environment:
2015/11/06 14:03:21 - INFO: [package:run_job] {'ARTIFACT': u'/home/david/.hashdist/bld/petsc/25praw655pha',
2015/11/06 14:03:21 - INFO: [package:run_job] 'BASH': u'/bin/bash',
2015/11/06 14:03:21 - INFO: [package:run_job] u'BLAS_DIR': u'/home/david/.hashdist/bld/blas/ga3yotglkobk',
2015/11/06 14:03:21 - INFO: [package:run_job] u'BLAS_ID': u'blas/ga3yotglkobkl7hbkxbngeqbieq2g7tp',
2015/11/06 14:03:21 - INFO: [package:run_job] 'BLAS_LDFLAGS': u'-Wl,-rpath,/home/david/.hashdist/bld/blas/ga3yotglkobk/lib -L/home/david/.hashdist/bld/blas/ga3yotglkobk/lib -lopenblas',
2015/11/06 14:03:21 - INFO: [package:run_job] 'BUILD': u'/home/david/.hashdist/tmp/petsc-25praw655pha',
2015/11/06 14:03:21 - INFO: [package:run_job] 'HASHDIST_CPU_COUNT': '1',
2015/11/06 14:03:21 - INFO: [package:run_job] 'HDIST_CONFIG': '{"gc_roots":"/home/david/.hashdist/gcroots
@dajuno
dajuno / build.log
Last active Nov 4, 2015
building petsc fails during fenics installation
View build.log
2015/11/04 15:08:04 - INFO: [package:run_job] running [u'/bin/bash', '_hashdist/build.sh']
2015/11/04 15:08:04 - INFO: [package:run_job] environment:
2015/11/04 15:08:04 - INFO: [package:run_job] {'ARTIFACT': u'/home/david/.hashdist/bld/petsc/27yxvjkf6twy',
2015/11/04 15:08:04 - INFO: [package:run_job] 'BASH': u'/bin/bash',
2015/11/04 15:08:04 - INFO: [package:run_job] u'BLAS_DIR': u'/home/david/.hashdist/bld/blas/bq7qrgo73lhs',
2015/11/04 15:08:04 - INFO: [package:run_job] u'BLAS_ID': u'blas/bq7qrgo73lhshapyxnpzq77gtzx2w5hz',
2015/11/04 15:08:04 - INFO: [package:run_job] 'BLAS_LDFLAGS': u'-Wl,-rpath,/home/david/.hashdist/bld/blas/bq7qrgo73lhs/lib -L/home/david/.hashdist/bld/blas/bq7qrgo73lhs/lib -lopenblas',
2015/11/04 15:08:04 - INFO: [package:run_job] 'BUILD': u'/home/david/.hashdist/tmp/petsc-27yxvjkf6twy-3',
2015/11/04 15:08:04 - INFO: [package:run_job] 'HASHDIST_CPU_COUNT': '1',
2015/11/04 15:08:04 - INFO: [package:run_job] 'HDIST_CONFIG': '{"gc_roots":"/home/david/.hashdist/gcroo
You can’t perform that action at this time.