Revision: | 274 |
Committed: | Mon Feb 17 21:27:47 2003 UTC (21 years, 7 months ago) by mmeineke |
Content type: | text/plain |
File size: | 360 byte(s) |
Log Message: | added mpi for libmdCode (still working out the kinks) |
# | User | Rev | Content |
---|---|---|---|
1 | mmeineke | 274 | #include <stdio.h> |
2 | #include <stdlib.h> | ||
3 | #include <string.h> | ||
4 | #include <mpi.h> | ||
5 | |||
6 | #include <mpiForceField.h> | ||
7 | |||
8 | |||
9 | |||
10 | |||
11 | void sendFrcStruct( void *frcStruct, MPI_Datatype structType ){ | ||
12 | |||
13 | MPI_Bcast(frcStruct,1,structType,0,MPI_COMM_WORLD); | ||
14 | } | ||
15 | |||
16 | |||
17 | void recieveFrcStruct( void *frcStruct, MPI_Datatype structType ){ | ||
18 | |||
19 | MPI_Bcast(frcStruct,1,structType,0,MPI_COMM_WORLD); | ||
20 | } | ||
21 |