help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nargout flagged as invalid function in mechanics package, function m


From: Juan Pablo Carbajal
Subject: Re: nargout flagged as invalid function in mechanics package, function mdsim
Date: Sun, 14 Jul 2013 14:58:00 +0200

On Sun, Jul 14, 2013 at 12:37 AM, Mike Miller <address@hidden> wrote:
> On Fri, Jul 12, 2013 at 11:15:09 -0500, James S. Meyer wrote:
>> I have been attempting to run the demos (demo1, demo2, demo3) in the
>> mechanics package, molecular dynamics section, but the program crashes in
>> one of the functions mdsim by flagging the narg operator in row 76, column 3
>> with the message octave:2> mdjim  (This is just a copy of the first
>> demonstration program).
>>
>> octave:2> mdjim
>> error: nargout: invalid function
>> error: called from:
>> error:
>> C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\packages\mechanics-1.3.1\molecularDynamics\mdsim.m
>> at line 76, colu
>> mn 3
>> error:   C:\Users\jsmeyer.STGREGORYS\mdjim.m at line 6, column 12
>> [...]
>> Can anyone spot why “nargout” would be an invalid function in mdsim, line
>> 76, column 3, and if so, how I might rectify the problem
>
> The (admittedly unclear) error message is from nargout telling you
> that the "demofunc1" function is not in your path. That function is in
> the same directory as mdsim in the mechanics package.
>
> Any reason why you aren't simply running "demo mdsim"? That works for me.
>
> --
> mike
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

Hi,
Sorry for the delay answering this question!
Thank you @Mike.

@James: Note that mdsim is in its infancy as a function and you should
rather use it as a reference to solve your own integrators than use it
as a final product. Check the C++ code implementation of verlet-step
and the other files. There is plenty of room for improvement. If you
are feeling like sending suggestions or code, you are very welcome.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]