ERROR: Expected 6 but found 10 args for pair style meam coefficients (../pair_meam.cpp:242)

Whenever I use the meam potential, I get bugs.

CoNiCrFeMn.meam (5.8 KB)

library.meam (771 Bytes)
Log file is as follows:

LAMMPS (22 Jul 2025 - Update 3)

dimension 3
units metal
boundary p p p
atom_style atomic
atom_modify map array
lattice fcc 3.5213
Lattice spacing in x,y,z = 3.5213 3.5213 3.5213
region box block -5 5 -5 5 -5 5 units lattice
create_box 5 box
Created orthogonal box = (-17.6065 -17.6065 -17.6065) to (17.6065 17.6065 17.6065)
2 by 2 by 2 MPI processor grid
lattice fcc 3.5213 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1
Lattice spacing in x,y,z = 3.5213 3.5213 3.5213
create_atoms 1 box
Created 4000 atoms
using lattice units in orthogonal box = (-17.6065 -17.6065 -17.6065) to (17.6065 17.6065 17.6065)
create_atoms CPU = 0.001 seconds

set type 1 type/fraction 2 0.0000 1314 # Co (hcp)
Setting atom values …
0 settings made for type/fraction
set type 1 type/fraction 3 0.0000 1614 # Cr (fcc)
Setting atom values …
0 settings made for type/fraction
set type 1 type/fraction 4 0.0000 1914 # Fe (fcc)
Setting atom values …
0 settings made for type/fraction
set type 1 type/fraction 5 0.0000 2314 # Mn (fcc)
Setting atom values …
0 settings made for type/fraction

neighbor 2.0 bin
neigh_modify delay 5 check yes one 100000 page 100000000

mass 1 58.690
mass 2 58.933
mass 3 51.960
mass 4 55.847
mass 5 54.940
pair_style meam
pair_coeff * * library.meam Co Ni Cr Fe Mn CoNiCrFeMn.meam Ni Co Cr Fe Mn
ERROR: Expected 10 but found 14 args for pair style meam coefficients (../pair_meam.cpp:242)
Last input line: pair_coeff * * library.meam Co Ni Cr Fe Mn CoNiCrFeMn.meam Ni Co Cr Fe Mn

Sorry, but I cannot reproduce this. Neither with the latest feature release, nor the latest maintenance release (both released earlier this week) or the static Linux binary for the exact version that you are running: https://github.com/lammps/lammps/releases/download/stable_22Jul2025_update3/lammps-linux-x86_64-22Jul2025_update3.tar.gz

LAMMPS (22 Jul 2025 - Update 3)
Lattice spacing in x,y,z = 3.5213 3.5213 3.5213
Created orthogonal box = (-17.6065 -17.6065 -17.6065) to (17.6065 17.6065 17.6065)
  1 by 1 by 1 MPI processor grid
Lattice spacing in x,y,z = 3.5213 3.5213 3.5213
Created 4000 atoms
  using lattice units in orthogonal box = (-17.6065 -17.6065 -17.6065) to (17.6065 17.6065 17.6065)
  create_atoms CPU = 0.000 seconds
Setting atom values ...
  0 settings made for type/fraction
Setting atom values ...
  0 settings made for type/fraction
Setting atom values ...
  0 settings made for type/fraction
Setting atom values ...
  0 settings made for type/fraction
WARNING: No fixes with time integration, atoms won't move
For more information see https://docs.lammps.org/err0028 (src/verlet.cpp:60)
Neighbor list info ...
  update: every = 1 steps, delay = 5 steps, check = yes
  max neighbors/atom: 100000, page size: 100000000
  master list distance cutoff = 6.5
  ghost atom cutoff = 6.5
  binsize = 3.25, bins = 11 11 11
  2 neighbor lists, perpetual/occasional/extra = 2 0 0
  (1) pair meam, perpetual
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
  (2) pair meam, perpetual, half/full from (1)
      attributes: half, newton on
      pair build: halffull/newton
      stencil: none
      bin: none
Setting up Verlet run ...
  Unit style    : metal
  Current step  : 0
  Time step     : 0.001
Per MPI rank memory allocation (min/avg/max) = 776 | 776 | 776 Mbytes
   Step          Temp          E_pair         E_mol          TotEng         Press     
         0   0             -17800          0             -17800          146.69052    
Loop time of 8.61e-07 on 1 procs for 0 steps with 4000 atoms

Total wall time: 0:00:00
LAMMPS (22 Jul 2025 - Update 6)
  using 1 OpenMP thread(s) per MPI task
Lattice spacing in x,y,z = 3.5213 3.5213 3.5213
Created orthogonal box = (-17.6065 -17.6065 -17.6065) to (17.6065 17.6065 17.6065)
  2 by 2 by 2 MPI processor grid
Lattice spacing in x,y,z = 3.5213 3.5213 3.5213
Created 4000 atoms
  using lattice units in orthogonal box = (-17.6065 -17.6065 -17.6065) to (17.6065 17.6065 17.6065)
  create_atoms CPU = 0.001 seconds
Setting atom values ...
  0 settings made for type/fraction
Setting atom values ...
  0 settings made for type/fraction
Setting atom values ...
  0 settings made for type/fraction
Setting atom values ...
  0 settings made for type/fraction
WARNING: No fixes with time integration, atoms won't move
For more information see https://docs.lammps.org/err0028 (src/verlet.cpp:60)
Neighbor list info ...
  update: every = 1 steps, delay = 5 steps, check = yes
  max neighbors/atom: 100000, page size: 100000000
  master list distance cutoff = 6.5
  ghost atom cutoff = 6.5
  binsize = 3.25, bins = 11 11 11
  2 neighbor lists, perpetual/occasional/extra = 2 0 0
  (1) pair meam, perpetual
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
  (2) pair meam, perpetual, half/full from (1)
      attributes: half, newton on
      pair build: halffull/newton
      stencil: none
      bin: none
Setting up Verlet run ...
  Unit style    : metal
  Current step  : 0
  Time step     : 0.001
Per MPI rank memory allocation (min/avg/max) = 771.7 | 771.7 | 771.7 Mbytes
   Step          Temp          E_pair         E_mol          TotEng         Press     
         0   0             -17800          0             -17800          146.69052    
Loop time of 2.81887e-06 on 8 procs for 0 steps with 4000 atoms

Total wall time: 0:00:00
LAMMPS (2 Sep 2026)
Lattice spacing in x,y,z = 3.5213 3.5213 3.5213
Created orthogonal box = (-17.6065 -17.6065 -17.6065) to (17.6065 17.6065 17.6065)
  2 by 2 by 2 MPI processor grid
Lattice spacing in x,y,z = 3.5213 3.5213 3.5213
Created 4000 atoms
  using lattice units in orthogonal box = (-17.6065 -17.6065 -17.6065) to (17.6065 17.6065 17.6065)
  create_atoms CPU = 0.001 seconds
Setting atom values ...
  0 settings made for type/fraction
Setting atom values ...
  0 settings made for type/fraction
Setting atom values ...
  0 settings made for type/fraction
Setting atom values ...
  0 settings made for type/fraction
WARNING: No fixes with time integration, atoms won't move
For more information see https://docs.lammps.org/err0028 (src/verlet.cpp:60)
Neighbor list info ...
  update: every = 1 steps, delay = 5 steps, check = yes
  max neighbors/atom: 100000, page size: 100000000
  master list distance cutoff = 6.5
  ghost atom cutoff = 6.5
  binsize = 3.25, bins = 11 11 11
  2 neighbor lists, perpetual/occasional/extra = 2 0 0
  (1) pair meam, perpetual
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
  (2) pair meam, perpetual, half/full from (1)
      attributes: half, newton on
      pair build: halffull/newton
      stencil: none
      bin: none
Setting up Verlet run ...
  Unit style    : metal
  Current step  : 0
  Time step     : 0.001
Per MPI rank memory allocation (min/avg/max) = 771.7 | 771.7 | 771.7 Mbytes
   Step          Temp          E_pair         E_mol          TotEng         Press     
         0   0             -17800          0             -17800          146.69052    
Loop time of 1.77175e-06 on 8 procs for 0 steps with 4000 atoms

Total wall time: 0:00:00

Please also note that this error differs from the subject line.