NAMD
Functions
TclCommands.h File Reference
#include <tcl.h>

Go to the source code of this file.

Functions

int tcl_vector_math_init (Tcl_Interp *)
 

Function Documentation

int tcl_vector_math_init ( Tcl_Interp *  )

Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.

Definition at line 299 of file TclCommands.C.

References proc_anglegrad(), proc_dihedralgrad(), proc_getangle(), proc_getbond(), proc_getdihedral(), and Vec_Init().

Referenced by ComputeTclBC::ComputeTclBC(), ScriptTcl::ScriptTcl(), and ScriptTcl::tclsh().

299  {
300 
301  // first import from TclVec.C stolen from VMD
302  Vec_Init(interp);
303 
304  Tcl_CreateObjCommand(interp, "getbond", proc_getbond,
305  (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL);
306  Tcl_CreateObjCommand(interp, "getangle", proc_getangle,
307  (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL);
308  Tcl_CreateObjCommand(interp, "getdihedral", proc_getdihedral,
309  (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL);
310  Tcl_CreateObjCommand(interp, "anglegrad", proc_anglegrad,
311  (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL);
312  Tcl_CreateObjCommand(interp, "dihedralgrad", proc_dihedralgrad,
313  (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL);
314 
315  return TCL_OK;
316 }
int Vec_Init(Tcl_Interp *interp)
Definition: TclVec.C:643
int proc_dihedralgrad(ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const argv[])
Definition: TclCommands.C:180
int proc_getdihedral(ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const argv[])
Definition: TclCommands.C:97
int proc_anglegrad(ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const argv[])
Definition: TclCommands.C:130
int proc_getangle(ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const argv[])
Definition: TclCommands.C:75
int proc_getbond(ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const argv[])
Definition: TclCommands.C:58