This file is indexed.

/usr/include/liggghts/fix_rigid_nvt.h is in libliggghts-dev 2.3.8-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
/* ----------------------------------------------------------------------
   LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
   http://lammps.sandia.gov, Sandia National Laboratories
   Steve Plimpton, sjplimp@sandia.gov

   Copyright (2003) Sandia Corporation.  Under the terms of Contract
   DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
   certain rights in this software.  This software is distributed under
   the GNU General Public License.

   See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */

#ifdef FIX_CLASS

FixStyle(rigid/nvt,FixRigidNVT)

#else

#ifndef LMP_FIX_RIGID_NVT_H
#define LMP_FIX_RIGID_NVT_H

#include "fix_rigid.h"

namespace LAMMPS_NS {

class FixRigidNVT : public FixRigid {
 public:
  FixRigidNVT(class LAMMPS *, int, char **);
  ~FixRigidNVT();
  int setmask();
  void init();
  void setup(int);
  void initial_integrate(int);
  void final_integrate();
  double compute_scalar();
  void write_restart(FILE *);
  void restart(char *);
  void reset_target(double);

 private:
  double **conjqm;                      // conjugate quaternion momentum
  double boltz;                         // boltzman constant
  double t_target;

  int nf_t,nf_r;                        // trans/rot degrees of freedom
  double *w,*wdti1,*wdti2,*wdti4;       // Yoshida-Suzuki coefficients
  double *q_t,*q_r;                     // trans/rot thermostat masses
  double *eta_t,*eta_r;                 // trans/rot thermostat positions
  double *eta_dot_t,*eta_dot_r;         // trans/rot thermostat velocities
  double *f_eta_t,*f_eta_r;             // trans/rot thermostat forces

  void update_nhcp(double, double);
  inline double maclaurin_series(double);

  void allocate_chain();
  void allocate_order();
  void deallocate_chain();
  void deallocate_order();
};

inline double FixRigidNVT::maclaurin_series(double x)
{
  double x2,x4;
  x2 = x * x;
  x4 = x2 * x2;
  return (1.0 + (1.0/6.0) * x2 + (1.0/120.0) * x4 + (1.0/5040.0) * x2 * x4 +
         (1.0/362880.0) * x4 * x4);
}

}

#endif
#endif

/* ERROR/WARNING messages:

E: Did not set temp for fix rigid/nvt

The temp keyword must be used.

E: Target temperature for fix rigid/nvt cannot be 0.0

Self-explanatory.

E: Fix rigid/nvt period must be > 0.0

Self-explanatory

E: Illegal ... command

Self-explanatory.  Check the input script syntax and compare to the
documentation for the command.  You can use -echo screen as a
command-line option when running LAMMPS to see the offending line.

E: Fix_modify order must be 3 or 5

Self-explanatory.

E: Cannot restart fix rigid/nvt with different # of chains

This is because the restart file contains per-chain info.

*/