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
| class MyUserFunction : public apf::Function | |
| { | |
| public: | |
| MyUserFunction(apf::Field* f, apf::Mesh* m) : node_field(f), mesh(m) {} | |
| void eval(apf::MeshEntity* e, double *result) { | |
| if(NULL != node_field) { | |
| apf::MeshElement* me = apf::createMeshElement(this->mesh, e); | |
| apf::Element* f_elm = apf::createElement(this->node_field, me); |
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
| { | |
| this->field = createField(this->mesh, "dummy", apf::VECTOR, this->mesh->getShape()); | |
| apf::zeroField(this->field); /*must zero the field to force writing of data*/ | |
| this->D[0][0] = 1e1; | |
| this->D[0][1] = 1e1; | |
| this->D[1][0] = 1e1; | |
| this->D[1][1] = 1e1; | |
| this->D[2][2] = 1e1; | |
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
| #include <stdio.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| /*shape function gradient copied right out of manual*/ | |
| double a = -0.04364916731037106478741094406359479762613773345947265625; | |
| double b = 1.3745966692414821608281272347085177898406982421875; | |
| double c1 = 5.0; | |
| double d = a*b; | |
| double e = b*a; |
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
| #include <iostream> | |
| #include <sstream> | |
| #include <string> | |
| #include <vector> | |
| #include <deque> | |
| #include <queue> | |
| #include <set> | |
| #include <map> | |
| #include <algorithm> | |
| #include <functional> |
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
| FROM centos:centos7.2.1511 | |
| MAINTAINER YetAnotherMinion <yam@thinkalexandria.com> | |
| ENV LIBEVHTP_DL_LOC="https://github.com/ellzey/libevhtp/archive/1.1.6.tar.gz" | |
| ENV LIBZDB_DL_LOC="http://www.tildeslash.com/libzdb/dist/libzdb-2.12.tar.gz" | |
| ENV POSTGRES_REPO="https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm" | |
| RUN yum -y --nogpgcheck update | |
| RUN yum -y --nogpgcheck install gcc-4.8.5-4.el7 \ |
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 os | |
| import sys | |
| import re | |
| import string | |
| expressions = [] | |
| # elm produces nice output where each complete top level expression starts with | |
| # a line with zero indentation and continues up until the next line with zero | |
| # indentation |
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
| module YourAPIClient exposing (Config, otherFunctions) | |
| import Http | |
| import Json.Decode as Decode | |
| import Json.Encode as Encode | |
| -- Config | |
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
| module IteratorBench exposing (main) | |
| import Benchmark exposing (Benchmark, benchmark2) | |
| import Benchmark.Runner exposing (BenchmarkProgram, program) | |
| import Time | |
| import Html exposing (Html, div, text) | |
| import Array exposing (Array) | |
| main : BenchmarkProgram | |
| main = |
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
| #[macro_use] | |
| extern crate diesel; | |
| #[macro_use] | |
| extern crate diesel_codegen; | |
| table! { | |
| table_a (tennant_id, part_number) { | |
| tennant_id -> Int8, | |
| part_number -> Int8, |
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
| #[macro_use] | |
| extern crate diesel; | |
| #[macro_use] | |
| extern crate diesel_codegen; | |
| table! { | |
| // table_a (tennant_id, part_number) { | |
| table_a (tennant_id) { | |
| tennant_id -> Int8, | |
| part_number -> Int8, |