# Broadcast inside of \`@mtkmodel\` macro causes precompilation failures when put into a package

**URL:** <https://discourse.julialang.org/t/broadcast-inside-of-mtkmodel-macro-causes-precompilation-failures-when-put-into-a-package/107277>\
**Category:** General Usage\
**Tags:** question, modelingtoolkit\
**Created:** [December 7, 2023, 3:06pm UTC](https://discourse.julialang.org/t/broadcast-inside-of-mtkmodel-macro-causes-precompilation-failures-when-put-into-a-package/107277 "2023-12-07T15:06:39Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Post date:** [December 15, 2023, 1:11pm UTC](https://discourse.julialang.org/t/broadcast-inside-of-mtkmodel-macro-causes-precompilation-failures-when-put-into-a-package/107277/18 "2023-12-15T13:11:52Z")

</div>

@ChrisRackauckas I’ve seen that the issue has been worked on ! Thanks for the support !

In the meantime, I’ve been working on the code without integrating it into a package for the moment. And I have another question that may be related to broadcasting.  
I saw that it is possible to define initial conditions with dictionaries associating a key made from a problem variable and an initial condition value such as

```julia
prob = ODEProblem(fol, [fol.x => 0.0], (0.0, 10.0), [fol.τ => 3.0])

```

from [Getting Started with ModelingToolkit.jl · ModelingToolkit.jl](https://docs.sciml.ai/ModelingToolkit/stable/tutorials/ode_modeling/)

Should this work with vector-valued initial conditions ?

---

_[View the full topic](https://discourse.julialang.org/t/broadcast-inside-of-mtkmodel-macro-causes-precompilation-failures-when-put-into-a-package/107277)._
