source: issm/oecreview/Archive/21724-22754/ISSM-21904-21905.diff@ 22755

Last change on this file since 22755 was 22755, checked in by Mathieu Morlighem, 7 years ago

CHG: added 21724-22754

File size: 2.7 KB
RevLine 
[22755]1Index: ../trunk-jpl/etc/environment.sh
2===================================================================
3--- ../trunk-jpl/etc/environment.sh (revision 21904)
4+++ ../trunk-jpl/etc/environment.sh (revision 21905)
5@@ -96,6 +96,9 @@
6 libpathappend "$PETSC_DIR/lib"
7 fi
8
9+SCOTCH_DIR="$ISSM_DIR/externalpackages/scotch/install"
10+libpathappend "$SCOTCH_DIR/lib"
11+
12 SLEPC_DIR="$ISSM_DIR/externalpackages/slepc/install"
13 libpathappend "$SLEPC_DIR/lib"
14
15Index: ../trunk-jpl/m4/issm_options.m4
16===================================================================
17--- ../trunk-jpl/m4/issm_options.m4 (revision 21904)
18+++ ../trunk-jpl/m4/issm_options.m4 (revision 21905)
19@@ -713,7 +713,7 @@
20 dnl scotch libraries
21 if test "x$HAVE_SCOTCH" = "xyes"; then
22 SCOTCHINCL="-DNOFILEIO -I$SCOTCH_ROOT/include -DSCOTCH_VERSION=\\\"UNKNOWN\\\""
23- SCOTCHLIB="-L$SCOTCH_ROOT/lib -lnfioscotch -lnfioscotcherr -lnfioscotcherrexit -lscotchmetis"
24+ SCOTCHLIB="-L$SCOTCH_ROOT/lib -lnfioscotch -lnfioscotcherr -lnfioscotcherrexit "
25 AC_DEFINE([_HAVE_SCOTCH_],[1],[with Scotch in ISSM src])
26 AC_SUBST([SCOTCHINCL])
27 AC_SUBST([SCOTCHLIB])
28Index: ../trunk-jpl/externalpackages/scotch/scotch.patch
29===================================================================
30--- ../trunk-jpl/externalpackages/scotch/scotch.patch (revision 21904)
31+++ ../trunk-jpl/externalpackages/scotch/scotch.patch (revision 21905)
32@@ -2226,12 +2226,11 @@
33 --- src/src/libscotch/parser_ll.l 2013-05-06 14:14:21.000000000 -0700
34 ***************
35 *** 192,197 ****
36---- 192,214 ----
37+--- 192,213 ----
38 stratParserInit (
39 const char * const string) /*+ Strategy string to parse +*/
40 {
41 + /* reset static variables from previous runs (jes, 4/29/10) */
42-+ yy_current_buffer = 0;
43 + yy_hold_char = (char) 0;
44 + yy_n_chars=0; /* number of characters read into yy_ch_buf */
45 + yy_c_buf_p = (char *) 0;
46Index: ../trunk-jpl/src/m/partition/partitioner.m
47===================================================================
48--- ../trunk-jpl/src/m/partition/partitioner.m (revision 21904)
49+++ ../trunk-jpl/src/m/partition/partitioner.m (revision 21905)
50@@ -40,6 +40,7 @@
51 md.mesh.numberofelements=md.mesh.numberofelements2d;
52 md.qmu.vertex_weight=[];
53 md.mesh.vertexconnectivity=[];
54+ recomputeadjacency='on';
55 end
56
57 %adjacency matrix if needed:
58@@ -79,10 +80,12 @@
59 %are we using weights?
60 if strcmpi(getfieldvalue(options,'weighting'),'on'),
61 weights=floor(md.qmu.vertex_weight/min(md.qmu.vertex_weight));
62+ else
63+ weights=[];
64 end
65 maptab=Scotch(md.qmu.adjacency,[],weights,[],'cmplt',[npart]);
66
67- part=maptab(:,2);%index partitions from 1 up. like metis.
68+ part=maptab(:,2)+1;%index partitions from 1 up. like metis.
69
70 elseif strcmpi(package,'linear'),
71
Note: See TracBrowser for help on using the repository browser.