Lemina
A molecular dynamics package for network, granular material and point particles with a range of interaction potential.
 
Loading...
Searching...
No Matches
SetupJob.c
Go to the documentation of this file.
1/*
2 * This file is part of Lamina.
3 *
4 * Lamina is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Lamina is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Lamina. If not, see <https://www.gnu.org/licenses/>.
16
17 Copyright (C) 2025 Harish Charan, University of Durham, UK
18
19 */
20
21#include<stdio.h>
22#include"global.h"
23
24void AllocArrays();
25void AccumProps(int icode);
26void InitVacf();
27void SetupJob(){
29 AccumProps(0);
30 InitVacf();
31 // INITIALISE SPACETIME CORRELATIONS
32 int n;
33 for (n = 1; n <= nBuffCorr; n++)
34 indexCorr[n] = -(n - 1)*nValCorr/nBuffCorr;
35
36 countCorrAv = 0.;
37
38 for (n = 1; n <= nFunCorr*nValCorr; n++)
39 spacetimeCorrAv[n] = 0.;
40
41 //RDF
42 countRdf = 0;
43}
void AllocArrays()
Definition AllocArrays.c:25
void AccumProps(int icode)
Definition AccumProps.c:25
void InitVacf()
Definition InitVacf.c:26
void SetupJob()
Definition SetupJob.c:27
int countCorrAv
Definition global.h:95
int nValCorr
Definition global.h:95
double * spacetimeCorrAv
Definition global.h:94
int countRdf
int * indexCorr
int nBuffCorr
Definition global.h:95
int nFunCorr
Definition global.h:95