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 Sofa, SofaRuntime | |
import meshio, numpy as np | |
class Exporter (Sofa.Core.Controller): | |
def __init__(self, *args, **kwargs): | |
Sofa.Core.Controller.__init__(self, *args, **kwargs) | |
self.step_id = 0 | |
def onAnimateEndEvent(self, e): | |
x = self.getContext().mo.position.array() |
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
diff --git a/boost/atomic/detail/ops_gcc_x86_dcas.hpp_origin b/boost/atomic/detail/ops_gcc_x86_dcas.hpp_patched | |
index 4dacc66..2c3cde2 100644 | |
--- a/boost/atomic/detail/ops_gcc_x86_dcas.hpp_origin | |
+++ b/boost/atomic/detail/ops_gcc_x86_dcas.hpp_patched | |
@@ -158,10 +158,7 @@ struct gcc_dcas_x86 | |
} | |
else | |
{ | |
-#if defined(__clang__) | |
- // Clang cannot allocate eax:edx register pairs but it has sync intrinsics |
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
diff --git a/src/tools/darwin.jam b/src/tools/darwin.jam | |
index 57d9c752..1886f4c4 100644 | |
--- a/src/tools/darwin.jam | |
+++ b/src/tools/darwin.jam | |
@@ -137,16 +137,6 @@ rule init ( version ? : command * : options * : requirement * ) | |
# - Set the toolset generic common options. | |
common.handle-options darwin : $(condition) : $(command) : $(options) ; | |
- # - GCC 4.0 and higher in Darwin does not have -fcoalesce-templates. | |
- if $(real-version) < "4.0.0" |
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
Error: [FileSystem::isDirectory()] /home/runner/work/SofaPython3/SofaPython3/SofaPython3/share/sofa/examples: No such file or directory | |
Error: [FileSystem::isDirectory()] /home/runner/work/SofaPython3/SofaPython3/SofaPython3/share/sofa: No such file or directory | |
[INFO] [SofaPython3] Initializing with python version 3.7.9 (default, Aug 18 2020, 13:17:47) | |
[GCC 7.5.0] | |
[INFO] [SofaPython3] Registering a scene loader for [.py, .py3, .pyscn, .py3scn] files. | |
[INFO] [SofaPython3] Shared library name is 'libpython3.7m.so' | |
[INFO] [SofaPython3] Intializing python | |
Warning: [PythonEnvironment] SofaPython3 not found in PluginManager's map. | |
Warning: [SofaSimulationCommon] the library has not been initialized (sofa::simulation::common::init() has never been called, see sofa/helper/init.h) | |
Warning: [SofaSimulationGraph] the library has not been initialized (sofa::simulation::graph::init() has never been called, see sofa/helper/init.h) |
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
Error: [FileSystem::isDirectory()] /home/runner/work/SofaPython3/SofaPython3/SofaPython3/share/sofa/examples: No such file or directory | |
Error: [FileSystem::isDirectory()] /home/runner/work/SofaPython3/SofaPython3/SofaPython3/share/sofa: No such file or directory | |
[INFO] [SofaPython3] Initializing with python version 3.7.9 (default, Aug 18 2020, 13:17:47) | |
[GCC 7.5.0] | |
[INFO] [SofaPython3] Registering a scene loader for [.py, .py3, .pyscn, .py3scn] files. | |
[INFO] [SofaPython3] Shared library name is 'libpython3.7m.so' | |
[INFO] [SofaPython3] Intializing python | |
Warning: [PythonEnvironment] SofaPython3 not found in PluginManager's map. | |
[INFO] [PythonTestExtractor] File 'Components.py' loaded with 1 unit tests. | |
[INFO] [PythonTestExtractor] File 'Controller.py' loaded with 7 unit tests. |
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 | |
from __future__ import print_function | |
import sys, re, argparse | |
def get_releases(): | |
data = {} | |
if sys.version_info[0] < 3: | |
import urllib, json | |
data = json.loads(urllib.urlopen("https://api.github.com/repos/sofa-framework/sofa/releases").read()) |
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 Sofa | |
import numpy as np | |
import copy | |
class Beam(Sofa.Core.Controller): | |
def __init__(self, node, *args, **kwargs): | |
Sofa.Core.Controller.__init__(self, *args, **kwargs) | |
self.gridShape = (4, 4, 16, 3) | |
self.createGraph(node) |
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/python3 | |
import os, sys | |
import numpy as np | |
from tempfile import NamedTemporaryFile | |
import meshio | |
from CGAL.CGAL_Polyhedron_3 import Polyhedron_3 | |
from CGAL.CGAL_Mesh_3 import Mesh_3_Complex_3_in_triangulation_3 | |
from CGAL.CGAL_Mesh_3 import Polyhedral_mesh_domain_3 | |
from CGAL.CGAL_Mesh_3 import Mesh_3_parameters |
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 <tuple> | |
template <typename T> | |
struct NameDecoder { | |
static std::string GetDefaultTemplateName() { return "rien"; } | |
}; | |
template<template <typename, typename...> class C, typename T1, typename ...Ts> | |
struct NameDecoder<C<T1, Ts...>> |