LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] Expected floating point parameter in input script or data file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] Expected floating point parameter in input script or data file


From: Stefan Paquay <stefanpaquay@...24...>
Date: Wed, 30 Aug 2017 14:28:15 -0400

You probably want to read up on the syntax for variables:
http://lammps.sandia.gov/doc/variable.html

On Wed, Aug 30, 2017 at 2:23 PM, Quang Ha <quang.t.ha.20@...24...> wrote:
I have updated with the latest commit from github - still the same error.

I thought mass*${gx} shall be computed to a float? before I have 

variable          gx         equal 1e-4



On 30 August 2017 at 13:31, Axel Kohlmeyer <akohlmey@...24...> wrote:


On Wed, Aug 30, 2017 at 12:55 PM, Quang Ha <quang.t.ha.20@...24...> wrote:
Hi all,

I have been encountering this very problem lately in my code:

[...]
variable bodyfx atom mass*${gx}
fix          pressure flow addforce bodyfx 0.0 0.0
[...]

The following error comes up:

ERROR: Expected floating point parameter in input script or data file

This must be something very simple, yet having tried all c_, v_ and f_ it doesn't seem to work.

What am I missing?

​for starters you are not reporting your LAMMPS version.

axel.​

 

Thanks,
Quang

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
lammps-users mailing list
lammps-users@...655....net
https://lists.sourceforge.net/lists/listinfo/lammps-users




--
Dr. Axel Kohlmeyer  akohlmey@...24...  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
lammps-users mailing list
lammps-users@...6297....sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lammps-users