Changeset 15106


Ignore:
Timestamp:
05/24/13 19:22:24 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: cosmetics, removed double blank lines

Location:
issm/trunk-jpl/src
Files:
61 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r15104 r15106  
    12871287        IssmDouble         gl[3];
    12881288        IssmDouble         f1,f2;
    1289 
    12901289
    12911290        /*Recover parameters and values*/
  • issm/trunk-jpl/src/c/classes/classes.h

    r15070 r15106  
    4444#include "./Elements/TriaHook.h"
    4545#include "./Elements/TriaRef.h"
    46 
    4746
    4847/*Option parsing objects: */
  • issm/trunk-jpl/src/c/solutionsequences/solutionsequence_hydro_nonlinear.cpp

    r15104 r15106  
    99
    1010void solutionsequence_hydro_nonlinear(FemModel* femmodel){
    11        
     11
    1212        /*solution : */
    1313        Vector<IssmDouble>* ug=NULL;
     
    1919        Vector<IssmDouble>* ys=NULL;
    2020        Vector<IssmDouble>* duf=NULL;
    21        
     21
    2222        Matrix<IssmDouble>* Kff=NULL;
    2323        Matrix<IssmDouble>* Kfs=NULL;
    2424        Vector<IssmDouble>* pf=NULL;
    2525        Vector<IssmDouble>* df=NULL;
    26        
     26
    2727        bool       sedconverged,eplconverged,hydroconverged;
    2828        bool       isefficientlayer;
     
    5858        }
    5959
    60 
    6160        for(;;){
    6261                sedcount=1;
     
    7574                femmodel->parameters->SetParam(HydrologySedimentEnum,HydrologyLayerEnum);
    7675                femmodel->HydrologyTransferx();
    77                
     76
    7877                /*Iteration on the sediment layer*/
    7978                for(;;){
     
    8584                        delete old_uf; old_uf=uf_sed->Duplicate();
    8685                        delete Kff; delete pf; delete ug; delete df;
    87                        
     86
    8887                        Mergesolutionfromftogx(&ug,uf_sed,ys,femmodel->nodes,femmodel->parameters); delete ys;
    8988                        InputUpdateFromSolutionx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,ug);
     
    187186                }
    188187                hydrocount++;
    189                        
     188
    190189                if(hydroconverged)break;
    191190        }
    192191
    193192        InputUpdateFromSolutionx(femmodel->elements,femmodel->nodes, femmodel->vertices, femmodel->loads, femmodel->materials, femmodel->parameters,ug);
    194        
     193
    195194        /*Free ressources: */
    196195        delete ug;
     
    201200        delete aged_uf_epl;
    202201        delete duf;
    203        
     202
    204203}
  • issm/trunk-jpl/src/m/classes/geometry.m

    r14811 r15106  
    2525                end % }}}
    2626                function md = checkconsistency(obj,md,solution,analyses) % {{{
    27                                
     27
    2828                        if (solution==TransientSolutionEnum() & md.transient.isgia) | (solution==GiaSolutionEnum()),
    2929                                md = checkfield(md,'geometry.thickness','forcing',1,'NaN',1,'>=',0);
  • issm/trunk-jpl/src/m/classes/groundingline.m

    r14652 r15106  
    3131                        md = checkfield(md,'groundingline.migration','values',{'None' 'AgressiveMigration' 'SoftMigration' 'SubelementMigration','SubelementMigration2'});
    3232
    33 
    3433                        if ~strcmp(obj.migration,'None'),
    3534                                if isnan(md.geometry.bathymetry),
  • issm/trunk-jpl/src/m/classes/hydrologydc.m

    r15062 r15106  
    2020                sediment_thickness       = 0;
    2121                sediment_transmitivity   = 0;
    22                
     22
    2323                spcepl_head              = NaN;
    2424                epl_compressibility      = 0;
     
    2626                epl_thickness            = 0;
    2727                epl_transmitivity        = 0;
    28                
     28
    2929  end
    3030        methods
     
    3838                end % }}}
    3939                function obj = setdefaultparameters(obj) % {{{
    40                        
     40
    4141                %Parameters from de Fleurian 2013
    4242                        obj.water_compressibility    = 5.04e-10;
     
    5858                        obj.epl_thickness            = 1.0;
    5959                        obj.epl_transmitivity        = 8.0e-02;
    60                        
     60
    6161                end % }}}
    6262                function md = checkconsistency(obj,md,solution,analyses) % {{{
    63                        
     63
    6464                %Early return
    6565                        if ~ismember(HydrologyDCInefficientAnalysisEnum(),analyses) & ~ismember(HydrologyDCEfficientAnalysisEnum(),analyses),
    6666                                return;
    6767                        end
    68                        
     68
    6969                        md = checkfield(md,'hydrology.water_compressibility','>',0,'numel',1);
    7070                        md = checkfield(md,'hydrology.isefficientlayer','numel',[1],'values',[0 1]);
     
    7979                                md = checkfield(md,'hydrology.leakage_factor','>',0,'numel',1);
    8080            end
    81                        
     81
    8282                        md = checkfield(md,'hydrology.spcsediment_head','forcing',1);
    8383                        md = checkfield(md,'hydrology.sediment_compressibility','>',0,'numel',1);
     
    8585                        md = checkfield(md,'hydrology.sediment_thickness','>',0,'numel',1);
    8686                        md = checkfield(md,'hydrology.sediment_transmitivity','>',0,'numel',1);
    87                        
     87
    8888                        if obj.isefficientlayer==1,
    8989                                md = checkfield(md,'hydrology.spcepl_head','forcing',1);
     
    121121                        fielddisplay(obj,'sediment_thickness','sediment thickness [m]');
    122122                        fielddisplay(obj,'sediment_transmitivity','sediment transmitivity [m^2/s]');
    123                        
     123
    124124                        if obj.isefficientlayer==1,
    125125                                disp(sprintf('   - for the epl layer'));
     
    130130                                fielddisplay(obj,'epl_transmitivity','epl transmitivity [m^2/s]');
    131131            end
    132          
     132
    133133                end % }}}
    134134                function marshall(obj,fid) % {{{
     
    152152                        WriteData(fid,'object',obj,'fieldname','sediment_thickness','format','Double');
    153153                        WriteData(fid,'object',obj,'fieldname','sediment_transmitivity','format','Double');             
    154                        
     154
    155155                        if obj.isefficientlayer==1,     
    156156                                WriteData(fid,'object',obj,'fieldname','spcepl_head','format','DoubleMat','mattype',1);
  • issm/trunk-jpl/src/m/classes/matdamageice.m

    r14901 r15106  
    2121                rheology_Z   = NaN;
    2222                rheology_law = '';
    23        
     23
    2424                %gia:
    2525                lithosphere_shear_modulus  = 0.;
     
    2727                mantle_shear_modulus       = 0.;
    2828                mantle_density             = 0.;
    29 
    3029
    3130        end
     
    8786                        %available: none, paterson and arrhenius
    8887                        obj.rheology_law='Paterson';
    89                        
     88
    9089                        %GIA:
    9190                        obj.lithosphere_shear_modulus  = 6.7*10^10;  % (Pa)
     
    151150                        WriteData(fid,'object',obj,'class','materials','fieldname','rheology_Z','format','DoubleMat','mattype',1);
    152151                        WriteData(fid,'data',StringToEnum(obj.rheology_law),'enum',MaterialsRheologyLawEnum(),'format','Integer');
    153                        
     152
    154153                        WriteData(fid,'object',obj,'class','materials','fieldname','lithosphere_shear_modulus','format','Double');
    155154                        WriteData(fid,'object',obj,'class','materials','fieldname','lithosphere_density','format','Double');
  • issm/trunk-jpl/src/m/classes/matice.m

    r14901 r15106  
    145145                        WriteData(fid,'object',obj,'class','materials','fieldname','rheology_n','format','DoubleMat','mattype',2);
    146146                        WriteData(fid,'data',StringToEnum(obj.rheology_law),'enum',MaterialsRheologyLawEnum(),'format','Integer');
    147                        
     147
    148148                        WriteData(fid,'object',obj,'class','materials','fieldname','lithosphere_shear_modulus','format','Double');
    149149                        WriteData(fid,'object',obj,'class','materials','fieldname','lithosphere_density','format','Double');
  • issm/trunk-jpl/src/m/classes/model/model.m

    r15021 r15106  
    9292                                md.hydrology=hydrologyshreve(md.materials);
    9393                        end
    94 
    9594
    9695                end% }}}
     
    11501149                end % }}}
    11511150                function memory(obj) % {{{
    1152                        
     1151
    11531152                disp(sprintf('\nMemory imprint:\n'));
    11541153
    11551154                fields=properties('model');
    11561155                mem=0;
    1157                
     1156
    11581157                for i=1:length(fields),
    11591158                        field=obj.(fields{i});
  • issm/trunk-jpl/src/m/consistency/ismodelselfconsistent.m

    r14771 r15106  
    8080                numanalyses=1;
    8181                analyses=[BedSlopeAnalysisEnum()];
    82        
     82
    8383        case GiaSolutionEnum(),
    8484                numanalyses=1;
  • issm/trunk-jpl/src/m/contrib/paraview/writeVTKcell.m

    r15062 r15106  
    4747        fprintf(FID,'ASCII \n');
    4848        fprintf(FID,'DATASET UNSTRUCTURED_GRID \n');
    49        
     49
    5050        fprintf(FID,'POINTS %d float\n',num_of_points);
    5151        s='%f %f %f \n';
    5252        P=[points zeros(num_of_points,3-dim)];
    5353        fprintf(FID,s,P');
    54        
     54
    5555        fprintf(FID,'CELLS %d %d\n',num_of_elt,num_of_elt*(point_per_elt+1));
    5656        s='%d';
     
    6060        s=cell2mat(horzcat(s,{'\n'}));
    6161        fprintf(FID,s,[(point_per_elt)*ones(num_of_elt,1) model.mesh.elements-1]');
    62        
     62
    6363        fprintf(FID,'CELL_TYPES %d\n',num_of_elt);
    6464        s='%d\n';
    6565        fprintf(FID,s,celltype*ones(num_of_elt,1));
    66        
     66
    6767        %check which field is a real result and print   
    6868        fprintf(FID,'POINT_DATA %s \n',num2str(num_of_points));
    6969        for j=1:num_of_fields
    70                
     70
    7171                if (length(sol_struct(1).(fieldnames{j}))==num_of_points);
    7272                        fprintf(FID,'SCALARS %s float 1 \n',fieldnames{j});
     
    8585                fprintf(FID,'ASCII \n');
    8686                fprintf(FID,'DATASET UNSTRUCTURED_GRID \n');
    87                
     87
    8888                fprintf(FID,'POINTS %d float\n',num_of_points);
    8989                s='%f %f %f \n';
    9090                P=[points zeros(num_of_points,3-dim)];
    9191                fprintf(FID,s,P');
    92                
     92
    9393                fprintf(FID,'CELLS %d %d\n',num_of_elt,num_of_elt*(point_per_elt+1));
    9494                s='%d';
     
    9898                s=cell2mat(horzcat(s,{'\n'}));
    9999                fprintf(FID,s,[(point_per_elt)*ones(num_of_elt,1) model.mesh.elements-1]');
    100                
     100
    101101                fprintf(FID,'CELL_TYPES %d\n',num_of_elt);
    102102                s='%d\n';
    103103                fprintf(FID,s,celltype*ones(num_of_elt,1));
    104                
     104
    105105                %check which field is a real result and print
    106106                fprintf(FID,'POINT_DATA %s \n',num2str(num_of_points));
    107107                for j=1:num_of_fields
    108                        
     108
    109109                        if (length(sol_struct(1).(fieldnames{j}))==num_of_points);
    110110                                fprintf(FID,'SCALARS %s float 1 \n',fieldnames{j});
  • issm/trunk-jpl/src/m/io/structtonc.m

    r14639 r15106  
    130130%update counter
    131131counter   = counter+1;
    132 
  • issm/trunk-jpl/src/m/lambert/lambert2xy.m

    r15103 r15106  
    7070        y=(B/D)*((cos(b0)*sin(b))-(sin(b0)*cos(b)*cos(lam-lam0)));
    7171end
    72 
    73 
    74 
    75 
  • issm/trunk-jpl/src/m/mesh/ExportGmsh.m

    r14862 r15106  
    44%   Usage:
    55%      ExportGmsh(md,filename)
    6 
    76
    87t1=clock;fprintf('%s',['writing gmsh mesh file']);
     
    5251fclose(fid);
    5352t2=clock;fprintf('%s\n',[' done (' num2str(etime(t2,t1)) ' seconds)']);
    54 
  • issm/trunk-jpl/src/m/mesh/roundmesh.m

    r13808 r15106  
    4646
    4747end
    48 
  • issm/trunk-jpl/src/m/miscellaneous/normcdf_issm.m

    r14182 r15106  
    77
    88end
    9 
  • issm/trunk-jpl/src/m/miscellaneous/normfit_issm.m

    r14326 r15106  
    6060
    6161end
    62 
  • issm/trunk-jpl/src/m/miscellaneous/norminv_issm.m

    r14182 r15106  
    77
    88end
    9 
  • issm/trunk-jpl/src/m/miscellaneous/prctile_issm.m

    r14326 r15106  
    8585
    8686end
    87 
  • issm/trunk-jpl/src/m/morphological/closing.m

    r14520 r15106  
    44mask=dilation(mask,neighboorhood);
    55mask=erosion(mask,neighboorhood);
    6 
  • issm/trunk-jpl/src/m/morphological/vectorialize.m

    r14580 r15106  
    22
    33        vec=bwboundaries(mask,connectivity);
    4        
     4
    55        contours=struct([]);
    66        for i=1:length(vec),
  • issm/trunk-jpl/src/m/parameterization/contourenvelope.m

    r14229 r15106  
    138138end
    139139segments=segments(1:count-1,:);
    140 
  • issm/trunk-jpl/src/m/plot/colormaps/ibcao.m

    r14517 r15106  
    6666yland = interp1(1:lland,Jland,linspace(1,lland,nland),'*linear');
    6767
    68 
    6968map=[ysea;yland];
  • issm/trunk-jpl/src/m/plot/colormaps/seacolor.m

    r14223 r15106  
    5656end
    5757y = interp1(1:l,J,linspace(1,l,n),'*linear');
    58 
  • issm/trunk-jpl/src/m/plot/curvedarrow.m

    r13870 r15106  
    2424        %compute some values out of (x1,y1) and (x2,y2)
    2525        length=distance*angle;
    26        
     26
    2727        if exist(options,'widthratio'),
    2828                widthratio=getfieldvalue(options,'widthratio');
     
    5757                m=-m;
    5858        end
    59        
     59
    6060        if exist(options,'arrowlength'),
    6161                d=arrowlength;
     
    6363                d=abs((distance*angle)*ratio);
    6464        end
    65        
     65
    6666        %G is d distance from middle of E and F:
    6767        G=(E+F)/2+d*m;
  • issm/trunk-jpl/src/mobile/ios/ISSM_APP/ISSM_APP/ISSM_APP/AppDelegate.m

    r15028 r15106  
    1616    return YES;
    1717}
    18                                                        
     18
    1919- (void)applicationWillResignActive:(UIApplication *)application
    2020{
  • issm/trunk-jpl/src/mobile/ios/ISSM_APP/ISSM_APP/ISSM_APPTests/ISSM_APPTests.m

    r15028 r15106  
    1414{
    1515    [super setUp];
    16    
     16
    1717    // Set-up code here.
    1818}
     
    2121{
    2222    // Tear-down code here.
    23    
     23
    2424    [super tearDown];
    2525}
  • issm/trunk-jpl/src/wrappers/AverageFilter/AverageFilter.cpp

    r15105 r15106  
    4343        FetchData(&imagein,&imagein_rows,&imagein_cols,IMAGEIN);
    4444        FetchData(&smooth,SMOOTH);
    45        
     45
    4646        /*Run core hole filler routine: */
    4747        AverageFilterx( &imageout,imagein,imagein_rows,imagein_cols,smooth);
  • issm/trunk-jpl/src/wrappers/Chaco/Chaco.cpp

    r15105 r15106  
    1717}/*}}}*/
    1818WRAPPER(Chaco){
    19    
     19
    2020        int i;
    2121        int nterms;
     
    8383        nparts=xNew<int>(1); nparts[0]=npart; //weird Chacox interface ain't it?
    8484        FetchData(&goal,&nterms,GOAL_IN);
    85        
     85
    8686        /*Some debugging print: {{{*/
    8787        #ifdef _DEBUG_
     
    106106        #endif
    107107        /*}}}*/
    108        
     108
    109109        /*Allocate output: */
    110110        assignment = xNewZeroInit<short>(nvtxs);
    111        
     111
    112112    /*Call core: */
    113113        Chacox(nvtxs, start, adjacency, vwgts, ewgts, x, y, z, assignment, options, nparts, goal);
  • issm/trunk-jpl/src/wrappers/ContourToMesh/ContourToMesh.cpp

    r15105 r15106  
    33    are inside this contour.
    44*/
    5        
     5
    66#include "./ContourToMesh.h"
    77
  • issm/trunk-jpl/src/wrappers/ContourToMesh/ContourToMesh.h

    r14996 r15106  
    6262
    6363#endif  /* _CONTOURTOMESH_H */
    64 
  • issm/trunk-jpl/src/wrappers/ContourToNodes/ContourToNodes.cpp

    r15105 r15106  
    22    \brief: takes a  contour file, and figures out which nodes  (x,y list)
    33*/
    4        
     4
    55#include "./ContourToNodes.h"
    66
     
    3232        /*checks on arguments on the matlab side: */
    3333        CHECKARGUMENTS(NLHS,NRHS,&ContourToNodesUsage);
    34        
     34
    3535        /*Fetch inputs: */
    3636        FetchData(&x,&nods,NULL,XHANDLE);
  • issm/trunk-jpl/src/wrappers/ContourToNodes/ContourToNodes.h

    r14996 r15106  
    5454
    5555#endif  /* _CONTOURTONODES_H */
    56 
  • issm/trunk-jpl/src/wrappers/EdgeDetection/EdgeDetection.cpp

    r15105 r15106  
    22 * \brief: edge detection for a boolean image
    33*/
    4        
     4
    55#include "./EdgeDetection.h"
    66
  • issm/trunk-jpl/src/wrappers/ElementConnectivity/ElementConnectivity.cpp

    r15105 r15106  
    2626        /*checks on arguments: */
    2727        CHECKARGUMENTS(NLHS,NRHS,&ElementConnectivityUsage);
    28        
     28
    2929        /*Input datasets: */
    3030        FetchData(&elements,&nels,NULL,ELEMENTS);
  • issm/trunk-jpl/src/wrappers/EnumToString/EnumToString.h

    r14961 r15106  
    2525#undef __FUNCT__
    2626#define __FUNCT__  "EnumToString"
    27  
     27
    2828#ifdef _HAVE_MATLAB_MODULES_
    2929/* serial input macros: */
  • issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp

    r15105 r15106  
    8787        }
    8888
    89 
    9089}/*}}}*/
    9190WRAPPER(ExpSimplify){
  • issm/trunk-jpl/src/wrappers/HoleFiller/HoleFiller.cpp

    r15105 r15106  
    2929        int     smooth;
    3030
    31 
    3231        /* output: */
    3332        double* imageout=NULL;
     
    4342        FetchData(&imagein,&imagein_rows,&imagein_cols,IMAGEIN);
    4443        FetchData(&smooth_flag,SMOOTH);
    45        
     44
    4645        /*Get smooth flag setup: */
    4746        if (smooth_flag==0)
  • issm/trunk-jpl/src/wrappers/InterpFromGridToMesh/InterpFromGridToMesh.cpp

    r15105 r15106  
    22 * \brief: data interpolation from a list of (x,y,values) into mesh vertices
    33*/
    4        
     4
    55#include "./InterpFromGridToMesh.h"
    66
  • issm/trunk-jpl/src/wrappers/InterpFromMesh2d/InterpFromMesh2d.cpp

    r15105 r15106  
    22 * \brief: data interpolation from a list of (x,y,values) into mesh vertices
    33*/
    4        
     4
    55#include "./InterpFromMesh2d.h"
    66
     
    2929        double* x_data=NULL;
    3030        int     x_data_rows;
    31        
     31
    3232        double* y_data=NULL;
    3333        int     y_data_rows;
     
    3939        double* x_prime=NULL;
    4040        double* y_prime=NULL;
    41        
     41
    4242        int     x_prime_rows;
    4343        int     y_prime_rows;
    44 
    4544
    4645        double* default_values=NULL;
     
    9392
    9493        if(nrhs>=8){
    95                
     94
    9695                /*Call expread on filename to build a contour array in the matlab workspace: */
    9796                mexCallMATLAB( 1, &matlabstructure, 1, (mxArray**)&FILENAME, "expread");
     
    127126        }
    128127
    129 
    130128        /*some checks*/
    131129        if (x_data_rows!=y_data_rows){
     
    135133                _error_("vectors x_prime and y_prime should have the same length!");
    136134        }
    137        
     135
    138136        /*get number of elements and number of nodes in the data*/
    139137        nels_data=index_data_rows;
  • issm/trunk-jpl/src/wrappers/InterpFromMeshToGrid/InterpFromMeshToGrid.cpp

    r15105 r15106  
    4242        double* y_m=NULL;
    4343
    44 
    4544        /*Boot module: */
    4645        MODULEBOOT();
     
    7271        /*Free ressources: */
    7372        //let matlab do this.
    74        
     73
    7574        /*end module: */
    7675        MODULEEND();
  • issm/trunk-jpl/src/wrappers/InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.cpp

    r15105 r15106  
    22 * \brief: data interpolation from a list of (x,y,values) into mesh vertices
    33*/
    4        
     4
    55#include "./InterpFromMeshToMesh3d.h"
    66
     
    4747        double* y_prime=NULL;
    4848        double* z_prime=NULL;
    49        
     49
    5050        int     x_prime_rows;
    5151        int     y_prime_rows;
  • issm/trunk-jpl/src/wrappers/MeshPartition/MeshPartition.cpp

    r15105 r15106  
    22 * \brief: partition mesh according to number of areas, using Metis library.
    33*/
    4        
     4
    55#include "./MeshPartition.h"
    66
     
    6767                element_partitioning[i]=(double)int_element_partitioning[i]+1; //Metis indexing from 0, matlab from 1.
    6868        }
    69        
     69
    7070        node_partitioning=xNew<double>(numberofvertices);
    7171        for (i=0;i<numberofvertices;i++){
     
    7676        WriteData(ELEMENTPARTITIONING,element_partitioning,numberofelements);
    7777        WriteData(NODEPARTITIONING,node_partitioning,numberofvertices);
    78        
     78
    7979        /*Free ressources:*/
    8080        //don't! let matlab do it.
  • issm/trunk-jpl/src/wrappers/MeshPartition/MeshPartition.h

    r14996 r15106  
    4949#define NRHS  2
    5050
    51 
    5251#endif  /* _MESHPARTITION_H */
    53 
  • issm/trunk-jpl/src/wrappers/MeshProfileIntersection/MeshProfileIntersection.cpp

    r15105 r15106  
    1515                mesh.
    1616*/
    17        
     17
    1818#include "./MeshProfileIntersection.h"
    1919
     
    4343        int     nods;
    4444        int     dummy;
    45        
     45
    4646        //contours
    4747        DataSet          *domain      = NULL;
  • issm/trunk-jpl/src/wrappers/MeshProfileIntersection/MeshProfileIntersection.h

    r14996 r15106  
    5252
    5353#endif  /* _MESHPROFILEINTERSECTION_H */
    54 
  • issm/trunk-jpl/src/wrappers/NodeConnectivity/NodeConnectivity.cpp

    r15105 r15106  
    2626        /*checks on arguments: */
    2727        CHECKARGUMENTS(NLHS,NRHS,&NodeConnectivityUsage);
    28        
     28
    2929        /*Input datasets: */
    3030        FetchData(&elements,&nels,NULL,ELEMENTS);
  • issm/trunk-jpl/src/wrappers/PointCloudFindNeighbors/PointCloudFindNeighbors.cpp

    r15105 r15106  
    22    \brief: flag points that are too near one another, within an array of point coordinates
    33*/
    4        
     4
    55#include "./PointCloudFindNeighbors.h"
    66
  • issm/trunk-jpl/src/wrappers/PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.cpp

    r15105 r15106  
    1919        int     index;
    2020        int     dummy;
    21        
     21
    2222        /*Boot module: */
    2323        MODULEBOOT();
     
    2525        /*checks on arguments on the matlab side: */
    2626        CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&PropagateFlagsFromConnectivityUsage);
    27        
     27
    2828        /*Input datasets: */
    2929        FetchData(&connectivity,&nel,&dummy,CONNECTIVITY);
  • issm/trunk-jpl/src/wrappers/Scotch/Scotch.cpp

    r13236 r15106  
    3535
    3636        /* Check for proper number of arguments */
    37    
     37
    3838        if (nrhs == 0 && nlhs == 0) {
    3939                GmapUsage();
  • issm/trunk-jpl/src/wrappers/Scotch/Scotch.h

    r14996 r15106  
    1313#include "../../c/modules/modules.h"
    1414#include "../../c/shared/shared.h"
    15    
     15
    1616#undef __FUNCT__
    1717#define __FUNCT__  "Scotch"
  • issm/trunk-jpl/src/wrappers/Shp2Exp/Shp2Exp.h

    r14996 r15106  
    4848
    4949#endif
    50 
  • issm/trunk-jpl/src/wrappers/Shp2Kml/Shp2Kml.h

    r14996 r15106  
    5050
    5151#endif
    52 
  • issm/trunk-jpl/src/wrappers/StringToEnum/StringToEnum.h

    r14961 r15106  
    2525#undef __FUNCT__
    2626#define __FUNCT__  "StringToEnum"
    27    
     27
    2828#ifdef _HAVE_MATLAB_MODULES_
    2929/* serial input macros: */
  • issm/trunk-jpl/src/wrappers/TriMesh/TriMesh.cpp

    r15105 r15106  
    1515}/*}}}*/
    1616WRAPPER(TriMesh){
    17        
     17
    1818        /*intermediary: */
    1919        double   area;
     
    3434        /*checks on arguments: */
    3535        CHECKARGUMENTS(NLHS,NRHS,&TriMeshUsage);
    36        
     36
    3737        /*Fetch data needed for meshing: */
    3838        FetchData(&domain,DOMAINOUTLINE);
  • issm/trunk-jpl/src/wrappers/matlab/io/ApiPrintf.cpp

    r15096 r15106  
    1818        /*use mexPrintf in matlab: */
    1919        mexPrintf(format,string);
    20        
     20
    2121        return;
    2222}
  • issm/trunk-jpl/src/wrappers/matlab/io/MatlabVectorToIssmVec.cpp

    r14727 r15106  
    1616
    1717        output=new IssmVec<double>();
    18        
     18
    1919        seqvec=new IssmSeqVec<double>();
    2020
  • issm/trunk-jpl/src/wrappers/matlab/io/WriteMatlabData.cpp

    r15096 r15106  
    373373        char        id[100];
    374374
    375 
    376375        /*Initialize field names*/
    377376        i=0;
     
    398397                /*number of nods: */
    399398                SetStructureFieldi(dataref,i,"nods"         ,contour->nods);
    400                
     399
    401400                /*density: */
    402401                SetStructureFieldi(dataref,i,"density"            ,1);
    403                
     402
    404403                /*x and y: */
    405404                SetStructureFieldi(dataref,i,"x"             ,contour->nods, 1,contour->x);
  • issm/trunk-jpl/src/wrappers/python/include/wrapper_macros.h

    r14291 r15106  
    4343/* WRAPPER 3.2 {{{*/
    4444#define WRAPPER(modulename,...)  \
    45 \
     45
    4646static PyObject* modulename(PyObject* self,PyObject* args);\
    4747static PyMethodDef modulename##_funcs[] = {\
     
    4949        {NULL,NULL,0,NULL}\
    5050};\
    51 \
     51
    5252static struct PyModuleDef modulename##module= {\
    5353        PyModuleDef_HEAD_INIT,\
     
    5858        modulename##_funcs\
    5959};\
    60 \
     60
    6161PyMODINIT_FUNC PyInit_##modulename(void){\
    62 \
     62
    6363        import_array();\
    6464        return PyModule_Create(&modulename##module);\
    6565}\
    66 \
     66
    6767static PyObject* modulename(PyObject* self,PyObject* args)
    6868/*}}}*/
     
    7070/* WRAPPER 2.7 {{{*/
    7171#define WRAPPER(modulename,...)  \
    72 \
     72
    7373static PyObject* modulename(PyObject* self,PyObject* args);\
    7474static PyMethodDef modulename##_funcs[] = {\
     
    7676        {NULL,NULL,0,NULL}\
    7777};\
    78 \
     78
    7979PyMODINIT_FUNC init##modulename(void){\
    80 \
     80
    8181        import_array();\
    8282        (void) Py_InitModule(#modulename, modulename##_funcs);\
    8383}\
    84 \
     84
    8585static PyObject* modulename(PyObject* self,PyObject* args)
    8686/*}}}*/
  • issm/trunk-jpl/src/wrappers/python/io/ApiPrintf.cpp

    r15096 r15106  
    1919        /*use printf: */
    2020        printf(format,string);
    21        
     21
    2222        return;
    2323}
  • issm/trunk-jpl/src/wrappers/python/io/WritePythonData.cpp

    r15091 r15106  
    298298        /*use printf: */
    299299        printf(format,string);
    300        
     300
    301301        return;
    302302}
Note: See TracChangeset for help on using the changeset viewer.