source: CIVL/examples/omp/amg2013/NOTES@ 1aaefd4

main test-branch
Last change on this file since 1aaefd4 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

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

  • Property mode set to 100644
File size: 1.4 KB
Line 
1Current problem:
21. A abc bug illustrated by abcBug.c, abcBugHead1.h and abcBugHead2.h
3
42. Error: Undeclared identifier sysconf
5at timer.c:45.41-47 "sysconf"
6
7sysconf looks like a constant defined in standard library.
8
9
10
11[unused file]
12ABC v0.2 of 31-mar-2014 -- http://vsl.cis.udel.edu/abc
13
14Error: Expected 14 arguments but saw 13
15at par_difconv.c:224.34-225.73 "hypre_map(ix,iy,iz-1 ... )"
16
17
18[solved]
19ABC v0.2 of 31-mar-2014 -- http://vsl.cis.udel.edu/abc
20
21Error: No conversion from type of right hand side to that of left:
22(void) *
23struct MPI_Comm
24at gen_redcs_mat.c:449.6-mpi.h:5.22 "new_comm = ((void*) ... )"
25make: *** [abc_amg2013] Error 6
26
27
28
29
30AMG2013/parcsr_ls/
31
32Probably what happened is: this file was read in after mpi.h was read.
33However in reality, this file will be preprocessed and compiled with other headers
34insteaed of mpi.h. In those headers, MPI_Comm is defined to be int, and
35MPI_COMM_NULL is (-1).
36
37Here are the includes:
38
39#include "parcsr_ls.h"
40#include "parcsr_mv.h"
41#include "seq_mv.h"
42#include "par_amg.h"
43
44In parcsr_ls.h:
45#include "HYPRE_parcsr_ls.h"
46...
47#include "utilities.h"
48
49utilities.h includes HYPRE_utilities.h.
50
51In HYPRE_utilities.h, mpi.h is included first.
52
53In utilities.h there is then a bunch of #defines which redefine MPI_Comm, etc.
54
55In mpi.h: typedef struct MPI_Comm MPI_Comm;
56
57In utilities.h:
58#define MPI_Comm hypre_MPI_Comm
59...
60typedef int hypre_MPI_Comm;
61
62
Note: See TracBrowser for help on using the repository browser.