Skip to content

Instantly share code, notes, and snippets.

// TYPE
// 0 - Normal
// 1 - DenseMatrix
// 2 - Eigen
// 3 - ColumnMajorMatrix
#define TYPE 0
#include "Var_evalApp.h"
#include "MooseInit.h"
@friedmud
friedmud / gist:9199256
Last active August 29, 2015 13:56
libMesh MooseBuild Recipe
cd $LIBMESH_BUILD_AREA
export LIBMESH_DIR=$LIBMESH_BUILD_AREA/libmesh/installed
export METHODS="opt"
export METHOD="opt"
cd libmesh
git clean -fxd
git reset HEAD --hard
git co master
@friedmud
friedmud / gist:9199319
Last active August 29, 2015 13:56
moose pre_test
if [[ $base_ref != "devel" ]]; then
echo "Pull requests MUST be for the devel branch!!"
exit 1
fi
# Go to where the MOOSE repo was cloned
cd $REPO_DIR
git reset HEAD --hard
@friedmud
friedmud / gist:9199350
Last active August 29, 2015 13:56
moose_test recipe
# Go to where the MOOSE repo was cloned
cd $REPO_DIR
git reset HEAD --hard
# Check out the devel branch (note, we might already be there, that's ok)
git co devel
# clean it
git clean -xfd
@friedmud
friedmud / gist:9332080
Created March 3, 2014 18:58
devel_to_master moosebuild
# Go to where the MOOSE repo was cloned
cd $DEVEL_REPO_DIR
# Make sure there is nothing hanging around
git reset HEAD --hard
# clean it
git clean -xfd
# Check out the devel branch (note, we might already be there, that's ok)
@friedmud
friedmud / gist:9332544
Created March 3, 2014 19:19
pre_devel_to_master moosebuild
# Go to where the MOOSE repo was cloned
cd $DEVEL_REPO_DIR
# Make sure there is nothing hanging around
git reset HEAD --hard
# clean it
git clean -xfd
# Check out the devel branch (note, we might already be there, that's ok)
@friedmud
friedmud / line_value_sampler_vpp_csv_line_sample_0001.csv
Last active August 29, 2015 14:01 — forked from jfburkhart/qt_mpl_pyside_datasource.py
Made the example work with columns of data instead of rows
id u v x y z
0 0 0.99999999999998 0 0.5 0
0.1 0.10000000000001 0.89999999999999 0.1 0.5 0
0.2 0.20000000000001 0.79999999999999 0.2 0.5 0
0.3 0.3 0.69999999999997 0.3 0.5 0
0.4 0.4 0.60000000000002 0.4 0.5 0
0.5 0.50000000000001 0.5 0.5 0.5 0
0.6 0.59999999999997 0.40000000000003 0.6 0.5 0
0.7 0.69999999999998 0.3 0.7 0.5 0
0.8 0.79999999999993 0.20000000000001 0.8 0.5 0
#include <iostream>
#include <tuple>
template <class... Ts>
void acceptsTuple(std::tuple<Ts...> values)
@friedmud
friedmud / thermal_test.C
Last active July 19, 2018 22:49
thermal_test.C
#include <iostream>
#include <thread>
int main()
{
double stuff = 1.2;
int junk = 2;
for (unsigned long int i=0; i < 100000000; i++)
{