@@ -134,7 +134,7 @@ void Force::parse_potential(
134134 potential.reset (new LJ (fid_potential, num_types, number_of_atoms));
135135 } else if (strcmp (potential_name, " ilp_tmd_sw" ) == 0 ) {
136136 if (num_param != 3 ) {
137- PRINT_INPUT_ERROR (" potential should ILP potential file and SW potential file.\n " );
137+ PRINT_INPUT_ERROR (" potential should contain ILP potential file and SW potential file.\n " );
138138 }
139139 FILE* fid_sw = my_fopen (param[2 ], " r" );
140140 potential.reset (new ILP_TMD_SW (fid_potential, fid_sw, num_types, number_of_atoms));
@@ -487,7 +487,7 @@ void Force::compute(
487487 virial_per_atom);
488488 } else if (1 == potentials[0 ]->ilp_flag ) {
489489 // compute the potential with ILP
490- potentials[0 ]->compute (
490+ potentials[0 ]->compute_ilp (
491491 box, type, position_per_atom, potential_per_atom, force_per_atom, virial_per_atom, group);
492492 } else {
493493 potentials[0 ]->compute (
@@ -508,7 +508,7 @@ void Force::compute(
508508 virial_per_atom);
509509 } else if (1 == potentials[i]->ilp_flag ) {
510510 // compute the potential with ILP
511- potentials[i]->compute (
511+ potentials[i]->compute_ilp (
512512 box, type, position_per_atom, potential_per_atom, force_per_atom, virial_per_atom, group);
513513 } else {
514514 potentials[i]->compute (
@@ -782,7 +782,7 @@ void Force::compute(
782782 virial_per_atom);
783783 } else if (1 == potentials[0 ]->ilp_flag ) {
784784 // compute the potential with ILP
785- potentials[0 ]->compute (
785+ potentials[0 ]->compute_ilp (
786786 box, type, position_per_atom, potential_per_atom, force_per_atom, virial_per_atom, group);
787787 } else {
788788 potentials[0 ]->compute (
@@ -803,7 +803,7 @@ void Force::compute(
803803 virial_per_atom);
804804 } else if (1 == potentials[i]->ilp_flag ) {
805805 // compute the potential with ILP
806- potentials[i]->compute (
806+ potentials[i]->compute_ilp (
807807 box, type, position_per_atom, potential_per_atom, force_per_atom, virial_per_atom, group);
808808 } else {
809809 potentials[i]->compute (
0 commit comments