Skip to content

Instantly share code, notes, and snippets.

Ronan Arraes Jardim Chagas ronisbr

Block or report user

Report or block ronisbr

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
@ronisbr
ronisbr / test_mvector.jl
Created Aug 20, 2018
Test OrdinaryDiffEq suing Vector
View test_mvector.jl
using OrdinaryDiffEq
using StaticArrays
mutable struct SimWorkspace{T} <: DEDataVector{T}
x::MVector{2,T}
a::T
end
function dyn!(du,u,p,t)
du .= [0 1;
@ronisbr
ronisbr / patch_always_print_report.diff
Created May 14, 2018
Proposed patch to print reports every time
View patch_always_print_report.diff
diff -rNu julia-orig/base/test.jl julia/base/test.jl
--- julia-orig/base/test.jl 2018-05-13 21:04:52.000000000 -0300
+++ julia/base/test.jl 2018-05-13 21:16:51.000000000 -0300
@@ -546,11 +546,13 @@
"""
mutable struct DefaultTestSet <: AbstractTestSet
description::AbstractString
+ always_print_report::Bool
results::Vector
n_passed::Int
View test_velocity_limit.jl
using DiffEqBase
using OrdinaryDiffEq
###############################################################################
# Variables
###############################################################################
# Global variable to store the acceleration.
# This solution was selected just for the sake of simplification. Don't use
# global variables!
View test_terminate.jl
importall Base
import RecursiveArrayTools.recursivecopy!
using DiffEqBase
using OrdinaryDiffEq
type SimType{T} <: AbstractArray{T,1}
x::Array{T,1}
f1::T
stop::Bool
View test_dtmin_bouncing_ball.jl
using DiffEqBase
using OrdinaryDiffEq
function f(t,u)
du = similar(u)
du[1] = u[2]
du[2] = -9.81
du
end
View test_dtmin.jl
importall Base
import RecursiveArrayTools.recursivecopy!
using DiffEqBase
using OrdinaryDiffEq
type SimType{T} <: AbstractArray{T,1}
x::Array{T,1}
f1::T
end
View teste_new_callbacks_01.jl
importall Base
import RecursiveArrayTools.recursivecopy!
using DiffEqBase
using DiffEqCallbacks
using OrdinaryDiffEq
type SimType{T} <: AbstractArray{T,1}
x::Array{T,1}
f1::T
View teste_two_events.jl
importall Base
import RecursiveArrayTools.recursivecopy!
using DifferentialEquations
type SimType{T} <: AbstractArray{T,1}
x::Array{T,1}
f1::T
end
@ronisbr
ronisbr / test_case_02.jl
Created Dec 14, 2016
Case 02 - Example of a system with custom type to be solved by DifferentialEquations.jl with right solution
View test_case_02.jl
importall Base
import RecursiveArrayTools.recursivecopy!
using DifferentialEquations
type SimType{T} <: AbstractArray{T,1}
x::Array{T,1}
f1::T
end
@ronisbr
ronisbr / test_case_01.jl
Created Dec 14, 2016
Case 01 - Example of a system with custom type to be solved by DifferentialEquations.jl with wrong solution
View test_case_01.jl
importall Base
import RecursiveArrayTools.recursivecopy!
using DifferentialEquations
type SimType{T} <: AbstractArray{T,1}
x::Array{T,1}
f1::T
end
You can’t perform that action at this time.