Changeset 11944


Ignore:
Timestamp:
04/05/12 14:54:00 (13 years ago)
Author:
Eric.Larour
Message:

Diverse

Location:
issm/trunk-jpl
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/boost/install.sh

    r11851 r11944  
    11#!/bin/bash
     2
     3#Note of caution:  stop after boostrap phase, and run
     4#bjam --debug-configuration, to figure out which paths boost is using to include
     5#python. make sure everyone of these paths is covered by python. If not, just make
     6#symlinks in externalpackages/python to what boost is expecting. Ther is NO WAY
     7#to get the boost library to include python support without doing that.
     8
     9
    210
    311#Some cleanup
  • issm/trunk-jpl/externalpackages/matlab/install.sh

    r11738 r11944  
    55
    66#Select or create a new simlink
    7 ln -s /usr/local/pkgs/matlab-7.6/ install
     7#ln -s /usr/local/pkgs/matlab-7.6/ install
    88#ln -s /usr/local/matlab704/ install
    99#ln -s /usr/local/matlab711/ install
     
    1515#ln -s /Applications/MATLAB_R2009a.app/ install
    1616#ln -s /Applications/MATLAB_R2010a.app/ install
    17 #ln -s /Applications/MATLAB_R2011b.app/ install
     17ln -s /Applications/MATLAB_R2012a.app/ install
    1818#ln -s /Applications/MATLAB*.app/ install
  • issm/trunk-jpl/externalpackages/python/install.sh

    r11837 r11944  
    11#!/bin/bash
    2 #wget http://python.org/ftp/python/3.2.2/Python-3.2.2.tgz
     2#wget http://python.org/ftp/python/version/Python-version.tgz
     3
     4#version=3.2.2
     5version=2.7.2
    36
    47#Some cleanup
    58rm -rf install src
    6 rm -rf Python-3.2.2
     9rm -rf Python-$version
    710mkdir install src
    811
     
    1114
    1215#Untar and move python into install directory
    13 tar -zxvf  Python-3.2.2.tgz
    14 mv Python-3.2.2/* src
    15 rm -rf Python-3.2.2
     16tar -zxvf  Python-$version.tgz
     17mv Python-$version/* src
     18rm -rf Python-$version
    1619
    1720#Configure doxygen
  • issm/trunk-jpl/externalpackages/scipy/install-macosx64.sh

    r11838 r11944  
    44#2 install scipy
    55#3 erase
    6 install=1
     6install=2
    77
    88
  • issm/trunk-jpl/externalpackages/triangle/install-macosx64.sh

    r11103 r11944  
    11#!/bin/bash
     2
     3#use matlab?
     4matlab=0
     5
    26
    37#Some cleanup
     
    1519
    1620#Patch triangle.c
    17 patch triangle.c ../triangle.c.patch
     21if [[ $matlab == "1" ]];then
     22        patch triangle.c ../triangle.c.patch.matlab
     23else
     24        patch triangle.c ../triangle.c.patch.python
     25fi
    1826
    1927#Compile triangle
  • issm/trunk-jpl/src/c/Container/Options.cpp

    r11861 r11944  
    4343                if (!mxIsClass(prhs[i],"char")) _error_("Argument %d must be name of option.",i+1);
    4444
    45                 FetchMatlabData(&name,prhs[i]);
     45                FetchData(&name,prhs[i]);
    4646                if (i+1 == nrhs) _error_("Argument %d must exist and be value of option \"%s\".",i+2,name);
    4747
  • issm/trunk-jpl/src/c/Makefile.am

    r11895 r11944  
    208208                                        ./shared/Elements/GetNumberOfDofs.cpp\
    209209                                        ./shared/String/sharedstring.h\
     210                                        ./shared/Wrapper/wrappershared.h\
     211                                        ./shared/Wrapper/ModuleBoot.cpp\
     212                                        ./shared/Wrapper/ModuleEnd.cpp\
    210213                                        ./toolkits/mpi/mpiincludes.h\
    211214                                        ./toolkits/mpi/patches/mpipatches.h\
     
    253256                                        ./modules/OutputResultsx/OutputResultsx.h\
    254257                                        ./modules/OutputResultsx/OutputResultsx.cpp\
     258                                        ./modules/TriMeshx/TriMeshx.h\
     259                                        ./modules/TriMeshx/TriMeshx.cpp\
    255260                                        ./modules/InputDuplicatex/InputDuplicatex.h\
    256261                                        ./modules/InputDuplicatex/InputDuplicatex.cpp\
     
    693698#Matlab sources  {{{1
    694699matlab_sources= ./shared/Matlab/matlabshared.h\
    695                                     ./shared/Matlab/ModuleBoot.cpp\
    696                                     ./shared/Matlab/ModuleEnd.cpp\
    697700                                    ./shared/Matlab/mxGetAssignedField.cpp\
    698                                     ./shared/Matlab/mxGetField.cpp\
    699701                                    ./shared/Matlab/CheckNumMatlabArguments.cpp\
    700702                                    ./toolkits/matlab/matlabincludes.h\
     
    707709                                    ./io/Matlab/FetchMatlabData.cpp\
    708710                                    ./io/Matlab/OptionParse.cpp
     711#}}}
     712#Python sources  {{{1
     713python_sources=     ./io/Python/pythonio.h\
     714                                    ./io/Python/WritePythonData.cpp\
     715                                    ./io/Python/FetchPythonData.cpp
    709716#}}}
    710717#Petsc sources  {{{1
     
    736743                                        ./toolkits/petsc/patches/MatInvert.cpp\
    737744                                        ./toolkits/petsc/patches/MatMultPatch.cpp\
     745                                        ./toolkits/petsc/patches/ISSMToPetscMatrixType.cpp\
    738746                                        ./toolkits/petsc/patches/ISSMToPetscInsertMode.cpp\
    739747                                        ./toolkits/petsc/patches/ISSMToPetscNormMode.cpp\
     
    928936libISSM_a_SOURCES += $(bamg_sources)
    929937libISSM_a_SOURCES += $(kml_sources)
     938libISSM_a_CXXFLAGS = -fPIC -D_SERIAL_ -D_GNU_SOURCE -fno-omit-frame-pointer -pthread -D_CPP_  $(CXXFLAGS) $(CXXOPTFLAGS)
     939
     940if PYTHON
     941libISSM_a_CXXFLAGS+=  -DNPY_NO_DEPRECATED_API
     942libISSM_a_SOURCES += $(python_sources)
     943endif
     944
     945if MATLAB
    930946libISSM_a_SOURCES += $(matlab_sources)
    931 
    932 libISSM_a_CXXFLAGS = -fPIC -DMATLAB -D_SERIAL_ -D_GNU_SOURCE -fno-omit-frame-pointer -pthread -D_CPP_ $(CXXFLAGS) $(CXXOPTFLAGS)
     947endif
     948
    933949endif
    934950#}}}
  • issm/trunk-jpl/src/c/modules/TriMeshx/TriMeshx.cpp

    r11880 r11944  
    2020        /*output: */
    2121        double* index=NULL;
     22        Matrix* index_matrix=NULL;
    2223        double* x=NULL;
    2324        double* y=NULL;
    2425        double* segments=NULL;
     26        Matrix* segments_matrix=NULL;
    2527        double* segmentmarkerlist=NULL;
    2628
     
    9092                 backcounter=counter;
    9193        }
     94
    9295       
    9396        /*Build regions: */
     
    124127
    125128        sprintf(options,"%s%lf","pQzDq30ia",area); /*replace V by Q to quiet down the logging*/
     129
    126130 
    127131        triangulate(options, &in, &out, NULL);
     132
    128133        /*report(&out, 0, 1, 1, 1, 1, 0);*/
     134
    129135
    130136        /*Allocate index, x and y: */
     
    151157        }
    152158
     159
     160
    153161        /*Associate elements with segments: */
    154162        AssociateSegmentToElement(&segments,out.numberofsegments,index,out.numberoftriangles);
     
    159167        }
    160168
    161         printf("%i %i %i\n",out.numberoftriangles,out.numberofpoints,out.numberofsegments);
    162169
    163170        /*Output : */
    164         *pindex=new Matrix(index,out.numberoftriangles,3,1);
     171        index_matrix=new Matrix(index,out.numberoftriangles,3,1);
     172        index_matrix->Convert(DENSE_SEQUENTIAL);
     173        *pindex=index_matrix;
     174       
     175        segments_matrix=new Matrix(segments,out.numberofsegments,3,1); segments_matrix->Convert(DENSE_SEQUENTIAL);
     176        *psegments=segments_matrix;
     177
    165178        *px=new Vector(x,out.numberofpoints);
    166179        *py=new Vector(y,out.numberofpoints);
    167         *psegments=new Matrix(segments,out.numberofsegments,3,1);
    168180        *psegmentmarkerlist=new Vector(segmentmarkerlist,out.numberofsegments);
     181
    169182}
  • issm/trunk-jpl/src/c/modules/modules.h

    r11900 r11944  
    116116#include "./ThicknessAbsMisfitx/ThicknessAbsMisfitx.h"
    117117#include "./ThicknessAbsGradientx/ThicknessAbsGradientx.h"
     118#include "./TriMeshx/TriMeshx.h"
    118119#include "./UpdateVertexPositionsx/UpdateVertexPositionsx.h"
    119120#include "./UpdateConstraintsx/UpdateConstraintsx.h"
  • issm/trunk-jpl/src/py/model/petscversion.py

    r11790 r11944  
    3030               
    3131                if tline[0:21]=="#define _PETSC_MAJOR_":
    32                         PETSC_VERSION=int(tline[23])
     32                        PETSC_VERSION=int(tline[22])
    3333                        break
    3434               
Note: See TracChangeset for help on using the changeset viewer.