dopri853 -- error: invalid type argument of unary '*' (have 'int')

Help
Brian M
2014-06-20
2014-06-20
  • Brian M

    Brian M - 2014-06-20

    ~~~~~
    ^
    C:\Users\PKBS\Desktop\EXPERIMENT\dopri853_temp\cell_interactions_vf.c:811:68: error: invalid type argument of unary '' (have 'int')
    f_[63] = -kab_15
    Pa_15+kba_15Pb_15+(D/(dl02))(Pb_14+Pb_16-(2*Pb_15));

    ~~~~

    Any idea what's going on? There's a long list of these, for all the equations in my model.

     
    Last edit: Brian M 2014-06-20
  • Brian M

    Brian M - 2014-06-20

    Figured it out:

    "(D/(dl0**2))"
    

    should be written as

    "(D/(dl0*dl0))"
    

    since it will be passed to C.

     
    Last edit: Brian M 2014-06-20

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks