Unverified Commit 5a062359 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

make char * argument of lammps_get_thermo() const

parent 101d3914
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -616,7 +616,7 @@ a double, so it can also return information that is computed on-the-fly.
 * \param  keyword  string with the name of the thermo keyword
 * \return          value of the requested thermo property or 0.0 */

double lammps_get_thermo(void *handle, char *keyword)
double lammps_get_thermo(void *handle, const char *keyword)
{
  LAMMPS *lmp = (LAMMPS *) handle;
  double dval = 0.0;
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ void lammps_commands_string(void *handle, const char *str);
int    lammps_version(void *handle);
int    lammps_get_mpi_comm(void* handle);
double lammps_get_natoms(void *handle);
double lammps_get_thermo(void *handle, char *keyword);
double lammps_get_thermo(void *handle, const char *keyword);

void   lammps_extract_box(void *handle, double *boxlo, double *boxhi,
                          double *xy, double *yz, double *xz,