Changeset 14912


Ignore:
Timestamp:
05/05/13 18:38:08 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: cosmetics, removing double blank lines:

Location:
issm/trunk-jpl/src/c
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/dakota/DakotaPlugin.cpp

    r14907 r14912  
    2828#include "../../shared/MemOps/MemOps.h"
    2929#include "../../solutions/DakotaSpawnCore.h"
    30 
    3130
    3231#ifdef _HAVE_DAKOTA_ //only works if dakota library has been compiled in.
  • issm/trunk-jpl/src/c/classes/objects/Bucket.h

    r14904 r14912  
    168168                        int        *modes_forcpu       = NULL;
    169169
    170 
    171170                        /*initialize buffers: */
    172171                        row_indices_forcpu=*prow_indices_forcpu;
     
    208207                        int        *modes_forcpu       = NULL;
    209208
    210 
    211209                        /*initialize buffers: */
    212210                        row_indices_forcpu=*prow_indices_forcpu;
  • issm/trunk-jpl/src/c/classes/objects/Loads/Pengrid.cpp

    r14838 r14912  
    734734        /*Retrieve parameters*/
    735735        parameters->FindParam(&penalty_factor,HydrologydcPenaltyFactorEnum);
    736        
     736
    737737        /*Initialize Element matrix and return if necessary*/
    738738        if(!this->active) return NULL;
  • issm/trunk-jpl/src/c/include/macros.h

    r14910 r14912  
    1818#endif
    1919/*}}}*/
    20 
    2120
    2221/*Exceptions: */
  • issm/trunk-jpl/src/c/modules/InterpFromMesh2dx/InterpFromMesh2dx.cpp

    r14895 r14912  
    99#include "../../classes/objects/objects.h"
    1010#include "../ContourToNodesx/ContourToNodesx.h"
    11 
    1211
    1312int InterpFromMesh2dx(IssmSeqVec<IssmPDouble>** pdata_prime,
  • issm/trunk-jpl/src/c/shared/MemOps/MemOps.h

    r14905 r14912  
    143143/*}}}*/
    144144
    145 
    146145#endif
  • issm/trunk-jpl/src/c/solutions/solutions.h

    r14907 r14912  
    6262void AdjointCorePointerFromSolutionEnum(void (**padjointcore)(FemModel*),int solutiontype);
    6363
    64 
    6564#endif
  • issm/trunk-jpl/src/c/toolkits/gsl/DenseGslSolve.cpp

    r14911 r14912  
    1818#include <gsl/gsl_linalg.h>
    1919#endif
    20 
    2120
    2221/*}}}*/
     
    246245/*}}}*/
    247246#endif
    248 
  • issm/trunk-jpl/src/c/toolkits/issm/IssmDenseMat.h

    r14910 r14912  
    2525
    2626#include <math.h>
    27 
    2827
    2928/*}}}*/
     
    164163                                        break;
    165164
    166 
    167165                                default:
    168166                                        _error_("unknown norm !");
  • issm/trunk-jpl/src/c/toolkits/issm/IssmMat.h

    r14904 r14912  
    201201                #ifndef _HAVE_WRAPPERS_
    202202                IssmVec<doubletype>* Solve(IssmVec<doubletype>* pf, Parameters* parameters){ /*{{{*/
    203                        
     203
    204204                        IssmVec<doubletype>* outvector=NULL;
    205205
  • issm/trunk-jpl/src/c/toolkits/issm/IssmMpiDenseMat.h

    r14904 r14912  
    7171                IssmMpiDenseMat(int min,int nin,int Min,int Nin,int* d_nnz,int* o_nnz){
    7272                        /*not needed, we are fully dense!: */
    73                        
     73
    7474                        this->buckets=new DataSet();
    7575
     
    164164                void Assemble(){
    165165
    166 
    167166                        int           i,j;
    168167
     
    221220                                MPI_Scatter(numvalues_forcpu,1,MPI_INT,numvalues_fromcpu+i,1,MPI_INT,i,comm);
    222221                        }
    223                        
     222
    224223                        row_indices_fromcpu=xNew<int*>(num_procs);
    225224                        col_indices_fromcpu=xNew<int*>(num_procs);
     
    287286                        xDelete<doubletype>(values_forcpu);
    288287                        xDelete<int>(numvalues_forcpu);
    289                        
     288
    290289                        for(i=0;i<num_procs;i++){
    291290                                DataSet* buckets=bucketsforcpu[i];
     
    310309                        xDelete<doubletype*>(values_fromcpu);
    311310                        xDelete<int>(numvalues_fromcpu);
    312                        
     311
    313312                        xDelete<int>(sendcnts);
    314313                        xDelete<int>(displs);
    315314                        /*}}}*/
    316 
    317315
    318316                }
     
    351349                                        break;
    352350
    353 
    354351                                default:
    355352                                        _error_("unknown norm !");
     
    430427                /*FUNCTION BucketsBuildScatterBuffers{{{*/
    431428                void BucketsBuildScatterBuffers(int** pnumvalues_forcpu,int** prow_indices_forcpu,int** pcol_indices_forcpu,doubletype** pvalues_forcpu,int** pmodes_forcpu,DataSet** bucketsforcpu,int num_procs){
    432 
    433429
    434430                        /*intermediary: */
     
    453449                        for(i=0;i<num_procs;i++){
    454450                                DataSet    *buckets            = bucketsforcpu[i];
    455                                
     451
    456452                                count=0;
    457453                                for(j=0;j<buckets->Size();j++){
     
    512508
    513509                        int i;
    514                        
     510
    515511                        /*output: */
    516512                        IssmMpiVec<IssmDouble>* uf=NULL;
  • issm/trunk-jpl/src/c/toolkits/issm/IssmMpiVec.h

    r14904 r14912  
    146146                void Assemble(){
    147147
    148 
    149148                        int           i,j;
    150149
     
    175174                        MPI_Comm comm=IssmComm::GetComm();
    176175
    177 
    178176                        /*First, make a vector of size M, which for each row between 0 and M-1, tells which cpu this row belongs to: */
    179177                        RowRank=DetermineRowRankFromLocalSize(M,m,comm);
    180 
    181178
    182179                        /*Now, sort out our dataset of buckets according to cpu ownership of rows: {{{*/
     
    206203                        }
    207204
    208                        
    209205                        row_indices_fromcpu=xNew<int*>(num_procs);
    210206                        values_fromcpu=xNew<doubletype*>(num_procs);
     
    266262                        xDelete<doubletype>(values_forcpu);
    267263                        xDelete<int>(numvalues_forcpu);
    268                        
     264
    269265                        for(i=0;i<num_procs;i++){
    270266                                DataSet* buckets=bucketsforcpu[i];
     
    286282                        xDelete<doubletype*>(values_fromcpu);
    287283                        xDelete<int>(numvalues_fromcpu);
    288                        
     284
    289285                        xDelete<int>(sendcnts);
    290286                        xDelete<int>(displs);
    291287                        /*}}}*/
    292 
    293288
    294289                }
     
    518513                void BucketsBuildScatterBuffers(int** pnumvalues_forcpu,int** prow_indices_forcpu,doubletype** pvalues_forcpu,int** pmodes_forcpu,DataSet** bucketsforcpu,int num_procs){
    519514
    520 
    521515                        /*intermediary: */
    522516                        int         i,j;
     
    538532                        for(i=0;i<num_procs;i++){
    539533                                DataSet    *buckets            = bucketsforcpu[i];
    540                                
     534
    541535                                count=0;
    542536                                for(j=0;j<buckets->Size();j++){
  • issm/trunk-jpl/src/c/toolkits/mpi/mpiincludes.h

    r14897 r14912  
    1212#include "./patches/mpipatches.h"
    1313
    14 
    1514#endif
  • issm/trunk-jpl/src/c/toolkits/mpi/patches/DetermineLocalSize.cpp

    r14861 r14912  
    2525        MPI_Comm_rank(comm,&my_rank);
    2626        MPI_Comm_size(comm,&num_procs);
    27 
    2827
    2928        /* TODO replace the following with ->
  • issm/trunk-jpl/src/c/toolkits/mumps/MpiDenseMumpsSolve.cpp

    r14904 r14912  
    1010#endif
    1111
    12 
    1312#include "../../include/types.h"
    1413#include "../../include/macros.h"
     
    2120#include "dmumps_c.h"
    2221
    23 
    2422#define JOB_INIT -1
    2523#define JOB_SOLVE 6
     
    3028
    3129        /*Variables: {{{*/
    32 
    3330
    3431        MPI_Comm   comm;
     
    7269        id.icntl[5-1] = 0;
    7370        id.icntl[18-1] = 3;
    74        
     71
    7572        id.icntl[20-1] = 0;
    7673        id.icntl[21-1] = 0;
     
    9390        id.nz_loc=local_nnz;
    9491
    95 
    9692        /*Allocate: */
    9793        if(local_nnz){
     
    10096                a_loc=xNew<IssmPDouble>(local_nnz);
    10197        }
    102        
     98
    10399        /*Populate the triplets: */
    104100        GetOwnershipBoundariesFromRange(&lower_row,&upper_row,Kff_m,comm);
     
    118114        id.a_loc=a_loc;
    119115
    120 
    121116        /*Deal with right hand side. We need to MPI_Gather it onto cpu 0: */
    122117        rhs=xNew<IssmPDouble>(pf_M);
     
    127122        /*recvcounts:*/
    128123        MPI_Allgather(&pf_m,1,MPI_INT,recvcounts,1,MPI_INT,comm);
    129        
     124
    130125        /*displs: */
    131126        MPI_Allgather(&lower_row,1,MPI_INT,displs,1,MPI_INT,comm);
Note: See TracChangeset for help on using the changeset viewer.