Changeset 1507


Ignore:
Timestamp:
08/03/09 13:49:41 (16 years ago)
Author:
Mathieu Morlighem
Message:

adopt one structure for all external package

Location:
issm/trunk/externalpackages/dakota
Files:
1 edited
3 moved

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/dakota/install.sh

    r1378 r1507  
    11#!/bin/bash
    22
    3 #Get number of cpus on current platform
    4 NUMCPUS=`grep -c processor /proc/cpuinfo`;
     3#Get number of cpus
     4NUMCPUS=$1;
    55
    66#Some cleanup
     
    7272
    7373
    74 #Compile dakota
     74#Compile and install dakota
    7575cd src
    76 make  -j $NUMCPUS
    77 
    78 #Install dakota
    79 make  -j $NUMCPUS install
    80 
     76if [ -z $NUMCPUS ];
     77then
     78        make
     79        make install
     80else
     81        make  -j $NUMCPUS
     82        make  -j $NUMCPUS install
     83fi
    8184
    8285#Weird behaviour of Dakota: libamplsolver.a and amplsolver.a are not the same thing!
Note: See TracChangeset for help on using the changeset viewer.