mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-13 13:55:52 +00:00
Added 'const' types
This commit is contained in:
@ -11,9 +11,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
int reading_coords (char *filename, int type_inter, const int *label_atom,
|
int reading_coords (const char *filename, const int type_inter,
|
||||||
const float *cell, int *num_mol, int *num_atoms,
|
const int *label_atom, const float *cell, int *num_mol,
|
||||||
int *true_label_mol, int *label_mol,
|
int *num_atoms, int *true_label_mol, int *label_mol,
|
||||||
int *type_atoms, float *coords)
|
int *type_atoms, float *coords)
|
||||||
/* filename - name of file with coordinates
|
/* filename - name of file with coordinates
|
||||||
* type_inter - type interaction (number of molecules for interaction)
|
* type_inter - type interaction (number of molecules for interaction)
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
char conv (int fnumb, int dig_pos)
|
char conv (const int fnumb, const int dig_pos)
|
||||||
/* fnumb - integer
|
/* fnumb - integer
|
||||||
* dig_pos - position
|
* dig_pos - position
|
||||||
*/
|
*/
|
||||||
|
@ -6,16 +6,16 @@
|
|||||||
|
|
||||||
|
|
||||||
// prototypes
|
// prototypes
|
||||||
char conv (int, int);
|
char conv (const int, const int);
|
||||||
int create_matrix (int, int, const int *, const int *, const float *, int,
|
int create_matrix (const int, const int, const int *, const int *, const float *,
|
||||||
const float *, int *);
|
const int, const float *, int *);
|
||||||
int message (int, int, const char *, FILE *);
|
int message (const int, const int, const char *, FILE *);
|
||||||
int printing_agl (char *, char *, const int *, int, const int *, const int *,
|
int printing_agl (const char *, const char *, const int *, const int,
|
||||||
const int *, const int *, int *);
|
const int *, const int *, const int *, const int *, int *);
|
||||||
int proc_matrix (int, const int *, int *, int *, int *, int *);
|
int proc_matrix (const int, const int *, int *, int *, int *, int *);
|
||||||
int reading_coords (char *, int, const int *, const float *, int *, int *,
|
int reading_coords (const char *, const int, const int *, const float *, int *,
|
||||||
int *, int *, int *, float *);
|
int *, int *, int *, int *, float *);
|
||||||
int summary_statistic (char *, int, int, const int *, const int *);
|
int summary_statistic (const char *, const int, const int, const int *, const int *);
|
||||||
|
|
||||||
|
|
||||||
int error_checking (const float *cell, int from, const char *input,
|
int error_checking (const float *cell, int from, const char *input,
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
|
||||||
int message (int log, int mode, const char *text, FILE *stdout)
|
int message (const int log, const int mode, const char *text, FILE *stdout)
|
||||||
/* mode - number of message
|
/* mode - number of message
|
||||||
* text - additional text
|
* text - additional text
|
||||||
*/
|
*/
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
int printing_agl (char *input, char *output, const int *connect, int num_mol,
|
int printing_agl (const char *input, const char *output, const int *connect,
|
||||||
const int *true_label_mol, const int *num_mol_agl,
|
const int num_mol, const int *true_label_mol, const int *num_mol_agl,
|
||||||
const int *agl, const int *stat, int *type_agl)
|
const int *agl, const int *stat, int *type_agl)
|
||||||
/* input - name of file with coordinates
|
/* input - name of file with coordinates
|
||||||
* output - name of output file
|
* output - name of output file
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
int create_matrix (int num_mol, int num_atoms, const int *label_mol,
|
int create_matrix (const int num_mol, const int num_atoms, const int *label_mol,
|
||||||
const int *type_atoms, const float *coords, int num_of_inter,
|
const int *type_atoms, const float *coords, const int num_of_inter,
|
||||||
const float *crit, int *connect)
|
const float *crit, int *connect)
|
||||||
/* num_mol - number of molecules
|
/* num_mol - number of molecules
|
||||||
* num_atoms - number of atoms
|
* num_atoms - number of atoms
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
int proc_matrix (int num_mol, const int *connect, int *num_mol_agl, int *agl,
|
int proc_matrix (const int num_mol, const int *connect, int *num_mol_agl, int *agl,
|
||||||
int *stat, int *stat_all)
|
int *stat, int *stat_all)
|
||||||
/* num_mol - number of molecules
|
/* num_mol - number of molecules
|
||||||
* connect - connectivity graph for all molecules
|
* connect - connectivity graph for all molecules
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
int summary_statistic (char *filename, int step, int num_mol, const int *type_agl, const int *stat_all)
|
int summary_statistic (const char *filename, const int step, const int num_mol,
|
||||||
|
const int *type_agl, const int *stat_all)
|
||||||
/* filename - name of output file
|
/* filename - name of output file
|
||||||
* step - number of steps
|
* step - number of steps
|
||||||
* num_mol - number of molecules
|
* num_mol - number of molecules
|
||||||
|
Reference in New Issue
Block a user