GraphNet: Discrete element modeling for network connected materials
Applications to polymeric networks
Macros | Functions
main.cpp File Reference

This file includes the code to check whether an MPI implementation has been asked by the user and run the experiment accordingly. More...

#include <iostream>
#include <cmath>
#include <cstdlib>
#include <math.h>
#include <random>
#include <time.h>
#include <vector>
#include <unistd.h>
#include <algorithm>
#include <ctime>
#include <chrono>
#include <fstream>
#include <sstream>
#include <string>
#include <cstring>
#include <stddef.h>
#include <mpi.h>
#include <assert.h>
#include "mpi_network.h"
Include dependency graph for main.cpp:

Macros

#define DECL_NET   Network test_network(path, from_dump);
 

Functions

int main (int argc, char *argv[])
 

Detailed Description

This file includes the code to check whether an MPI implementation has been asked by the user and run the experiment accordingly.

Macro Definition Documentation

#define DECL_NET   Network test_network(path, from_dump);

Function Documentation

int main ( int  argc,
char *  argv[] 
)

< Takes in 2 command line arguments,
[1] filename (string) of the .msh file generated by GMSH, this file creates the network
[2] MPI_flag (int) if want to run the code on MPI. Note the syntax for MPI runs.

Note: mpirun -np <numprocs> <executable> <filename.msh> 1