source: CIVL/examples/omp/amg2013/NOTES@ 4dec5e2

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 4dec5e2 was 4dec5e2, checked in by Stephen Siegel <siegel@…>, 10 years ago

Doing some work on amg2013 example: modifying the CIVL Makefile in several places:
removed two source files which are incorrect and in fact are not used in the compilation of the program.
Other minor things.
Adding NOTES on this example.
Changed Makefile.include selfishly to work for my mpi/gcc setup.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@3729 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 1.0 KB
Line 
1Current problem:
2
3
4
5ABC v0.2 of 31-mar-2014 -- http://vsl.cis.udel.edu/abc
6
7Error: No conversion from type of right hand side to that of left:
8(void) *
9struct MPI_Comm
10at gen_redcs_mat.c:449.6-mpi.h:5.22 "new_comm = ((void*) ... )"
11make: *** [abc_amg2013] Error 6
12
13
14
15
16AMG2013/parcsr_ls/
17
18Probably what happened is: this file was read in after mpi.h was read.
19However in reality, this file will be preprocessed and compiled with other headers
20insteaed of mpi.h. In those headers, MPI_Comm is defined to be int, and
21MPI_COMM_NULL is (-1).
22
23Here are the includes:
24
25#include "parcsr_ls.h"
26#include "parcsr_mv.h"
27#include "seq_mv.h"
28#include "par_amg.h"
29
30In parcsr_ls.h:
31#include "HYPRE_parcsr_ls.h"
32...
33#include "utilities.h"
34
35utilities.h includes HYPRE_utilities.h.
36
37In HYPRE_utilities.h, mpi.h is included first.
38
39In utilities.h there is then a bunch of #defines which redefine MPI_Comm, etc.
40
41In mpi.h: typedef struct MPI_Comm MPI_Comm;
42
43In utilities.h:
44#define MPI_Comm hypre_MPI_Comm
45...
46typedef int hypre_MPI_Comm;
47
48
Note: See TracBrowser for help on using the repository browser.