diff --git a/README.md b/README.md index cf007a2..d5731e3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # QuantizedSystemSolver -[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://github.com/mongibellili/QuantizedSystemSolver.jl) -[![Build Status](https://github.com/mongibellili/QuantizedSystemSolver.jl/workflows/CI/badge.svg)](https://github.com/mongibellili/QuantizedSystemSolver.jl/actions) -[![Coverage](https://codecov.io/gh/mongibellili/QuantizedSystemSolver.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/mongibellili/QuantizedSystemSolver.jl) -[![Coverage](https://coveralls.io/repos/github/mongibellili/QuantizedSystemSolver.jl/badge.svg?branch=main)](https://coveralls.io/github/mongibellili/QuantizedSystemSolver.jl?branch=main) +[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://github.com/mongibellili/QuantizedSystemSolver) +[![Build Status](https://github.com/mongibellili/QuantizedSystemSolver/workflows/CI/badge.svg)](https://github.com/mongibellili/QuantizedSystemSolver/actions) +[![Coverage](https://codecov.io/gh/mongibellili/QuantizedSystemSolver/branch/main/graph/badge.svg)](https://codecov.io/gh/mongibellili/QuantizedSystemSolver) +[![Coverage](https://coveralls.io/repos/github/mongibellili/QuantizedSystemSolver/badge.svg?branch=main)](https://coveralls.io/github/mongibellili/QuantizedSystemSolver?branch=main) diff --git a/src/QuantizedSystemSolver.jl b/src/QuantizedSystemSolver.jl index 840fdef..eb4c8a0 100644 --- a/src/QuantizedSystemSolver.jl +++ b/src/QuantizedSystemSolver.jl @@ -56,8 +56,8 @@ import Base: sqrt, exp, log, sin, cos, sincos, tan, export save_SolSum,plotRelativeError#,stackplotRelativeError,plot_save_RelativeError,stackplot_save_RelativeError,saveRelativeError,stacksaveRelativeError export plotAbsoluteError#,stackplotAbsoluteError,plot_save_AbsoluteError,stackplot_save_AbsoluteError,saveAbsoluteError,stacksaveAbsoluteError export getError,getPlot,getPlot!#,plotCumulativeSquaredRelativeError,plotMSE,getIntervalError,plotElapsed - - export NLodeProblem, @NLodeProblem,@saveNLodeProblem,solve,save_prob_to_model,QSS_Solve_from_model,solInterpolated + export NLODEProblem + export NLodeProblem#= , @NLodeProblem,@saveNLodeProblem =#,solve,save_prob_to_model,QSS_Solve_from_model,solInterpolated export Sol,getErrorByRodas,getAllErrorsByRefs,getAverageErrorByRefs export Taylor0,mulT,mulTT,createT,addsub,negateT,subsub,subadd,subT,addT,muladdT,mulsub,divT # in case to save into a file, otherwise remove @@ -122,7 +122,7 @@ import Base: sqrt, exp, log, sin, cos, sincos, tan, # include("dense/NL_integrators/NL_LiQSS_discreteIntegrator.jl") # implicit integrator when large entries NOT on the main diagonal of the jacobian - # include("dense/NL_integrators/NL_nmLiQSS_Integrator.jl") + include("dense/NL_integrators/NL_nmLiQSS_Integrator.jl") include("dense/NL_integrators/NL_nmLiQSS_discreteIntegrator.jl") diff --git a/test/runtests.jl b/test/runtests.jl index cfa35c6..6983cca 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -10,5 +10,20 @@ using Test du[1] = -20.0*u[1]-80.0*u[2]+1600.0 du[2] =1.24*u[1]-0.01*u[2]+0.2 end) + @test typeof(odeprob) <: NLODEProblem{1,2,0,0,3} @test odeprob.prname == :sysb53 + @test odeprob.initConditions == [-1.0, -2.0] + @test odeprob.jac == [[1,2], [1,2]] || odeprob.jac == [[2,1], [2,1]] + @test odeprob.SD == [[1,2], [1,2]] || odeprob.SD == [[2,1], [2,1]] + @test typeof(odeprob.eqs) <: Function + @test typeof(odeprob.exactJac) <: Function + @test typeof(odeprob.jacDim) <: Function + @test odeprob.a == Val(2) + @test odeprob.b == Val(0) + @test odeprob.c == Val(0) + @test odeprob.prtype == Val(1) + tspan=(0.0,1.0) + sol=solve(odeprob,nmliqss1(),tspan) + @test sol.algName == "nmliqss1" + end