|
1 | 1 | module MechGluecode |
2 | | -using MechanicalUnits |
3 | 2 | using Requires |
| 3 | +export value, ODE_DEFAULT_NORM, UNITLESS_ABS2, Unitfu |
4 | 4 |
|
5 | 5 | function __init__() |
6 | | - @require DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa" @eval using MechGlueDiffEqBase |
7 | | - @require Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59" @eval using MechGlueInterpolations |
8 | | - @require ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78" @eval using MechGlueModelingToolkit |
9 | | - @require Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" @eval using MechGluePlots |
10 | | - @require RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" @eval using MechGlueRecursiveArrayTools |
| 6 | + @require MechanicalUnits = "e6be9192-89dc-11e9-36e6-5dbcb28f419e" begin |
| 7 | + @require Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" begin |
| 8 | + @info "Plots => using MechGluePlots" |
| 9 | + @eval using MechGluePlots |
| 10 | + end |
| 11 | + @require DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa" begin |
| 12 | + import MechanicalUnits: Unitfu, @import_expand |
| 13 | + import Unitfu: AbstractQuantity |
| 14 | + import DifferentialEquations |
| 15 | + import DifferentialEquations: DiffEqBase |
| 16 | + import DiffEqBase: value, ODE_DEFAULT_NORM, UNITLESS_ABS2 |
| 17 | + @info "DifferentialEquations => using MechGlueDiffEqBase" |
| 18 | + @eval using MechGlueDiffEqBase |
| 19 | + end |
| 20 | + |
| 21 | + @require Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59" begin |
| 22 | + @info "Interpolations => using MechGlueInterpolations" |
| 23 | + @eval using MechGlueInterpolations |
| 24 | + end |
| 25 | + |
| 26 | + @require ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78" begin |
| 27 | + @info "ModelingToolkit => using MechGlueModelingToolkit" |
| 28 | + @eval using MechGlueModelingToolkit |
| 29 | + end |
| 30 | + |
| 31 | + @require RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" begin |
| 32 | + @eval using MechGlueDiffEqBase |
| 33 | + @info "RecursiveArrayTools => using MechGlueRecursiveArrayTools" |
| 34 | + @eval using MechGlueRecursiveArrayTools |
| 35 | + end |
| 36 | + end |
| 37 | + @info "MechGluecode init" |
11 | 38 | end |
12 | 39 | end |
0 commit comments