Skip to content

Instantly share code, notes, and snippets.

Derek Gaston friedmud

Block or report user

Report or block friedmud

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
@friedmud
friedmud / thermal_test.C
Last active Jul 19, 2018
thermal_test.C
View 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++)
{
View tuple_test.C
#include <iostream>
#include <tuple>
template <class... Ts>
void acceptsTuple(std::tuple<Ts...> values)
@friedmud
friedmud / line_value_sampler_vpp_csv_line_sample_0001.csv
Last active Aug 29, 2015 — forked from jfburkhart/qt_mpl_pyside_datasource.py
Made the example work with columns of data instead of rows
View line_value_sampler_vpp_csv_line_sample_0001.csv
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
@friedmud
friedmud / gist:9332544
Created Mar 3, 2014
pre_devel_to_master moosebuild
View gist:9332544
# 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:9332080
Created Mar 3, 2014
devel_to_master moosebuild
View gist:9332080
# 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:9199350
Last active Aug 29, 2015
moose_test recipe
View gist:9199350
# 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:9199319
Last active Aug 29, 2015
moose pre_test
View gist:9199319
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:9199256
Last active Aug 29, 2015
libMesh MooseBuild Recipe
View gist:9199256
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
View assembly_bench.C
// TYPE
// 0 - Normal
// 1 - DenseMatrix
// 2 - Eigen
// 3 - ColumnMajorMatrix
#define TYPE 0
#include "Var_evalApp.h"
#include "MooseInit.h"
You can’t perform that action at this time.