LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] Syntax error by extra/bond/per/atom in read_data command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] Syntax error by extra/bond/per/atom in read_data command


From: Hyungmook Kang <hmkang@...633...>
Date: Wed, 13 Sep 2017 16:49:20 -0700

As following the read_data document, no number is required for the keyword (leave space). In addition, when I input some numbers following extra/bond/per/atom, I get the same error "Ilegal read_data" error.

Could you give me other tips?

Thanks,
Mook

On Wed, Sep 13, 2017 at 3:37 PM, Axel Kohlmeyer <akohlmey@...24...> wrote:


On Wed, Sep 13, 2017 at 6:09 PM, Hyungmook Kang <hmkang@...633...> wrote:
Dear lammps users,

I have the same problem of 

I'm trying to combine two data files by using read_data command. 
When I run without extra/bond/per/atom keyword, I get the following error message. 

Subsequent read data induced too many bonds per atom (../read_data.cpp:1222)

When I changed the syntax with the keyword, extra/bond/per/atom, and I get
"Ilegal read_data" error.

​there is no number following extra/bond/per/atom, hence the error.​


Previously, a solution using moltemplate was introduced. 
Could somebody let me know the way to directly solve this problem by using right lammps syntax?

​compare your input very carefully to the read_data documentation.

axel.​

 


The follows are the lines in my input file.

read_data   water.dat group solvent extra/atom/types 5 extra/bond/types 10 extra/angle/types 10 extra/bond/per/atom
read_data    extra.dat add append group extra


Many Thanks
Mook

------------------------------------------------------------------------------
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.