I am doing a Monte Carlo Simulation on Argon and viewing the output file using VMD. Here is the part of that file:
21 10.000000 10.000000 10.000000 Ar 0.303895 4.327322 ...
Type: Posts; User: benner
I am doing a Monte Carlo Simulation on Argon and viewing the output file using VMD. Here is the part of that file:
21 10.000000 10.000000 10.000000 Ar 0.303895 4.327322 ...
Here is the first part of the program:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int n_atoms; //number of atoms in the file
char space[3]; //for holding blank lines...
Thank you for the reply :) . I followed your instructions and I get this:
Starting program: /home/lenovo/Desktop/m Output the calculated total energy Program received signal SIGSEGV,...
Thank you for the reply.
I am using Ubuntu 11.10. It compiles correctly but when I do the ./a.out I get segmentation fault. I think it is on the function call made in int main.
I am trying to make a program for Metropolis Monte Carlo Simulation. I am still on the first two steps of the program. My problem is on how to output the the number of atoms, distance between two...
I am trying to make a program for n by n determinant. This program compiles correctly but it does not give a correct answer. I don't know why?
int Determinant(int m[DIM][DIM],int size);
int...