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