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