Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small ParMETIS bugfix in src/geometry.cpp, and Makefile changes for Pleiades #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ endif
ifeq ($(PARALLEL),MPI)
OPTS += -I $(MPI_DIR)/include
OPTS += -I $(PARMETIS_DIR)/include
OPTS += -I $(PARMETIS_DIR)/metis/include
OPTS += -I $(METIS_DIR)/include
endif

ifeq ($(CODE),DEBUG)
Expand Down Expand Up @@ -139,7 +139,7 @@ endif

ifeq ($(PARALLEL),MPI)
OBJS += $(OBJ)mpi_inters.o
OBJS += $(PARMETIS_BUILD_DIR)/libparmetis.a $(PARMETIS_BUILD_DIR)/libmetis.a
OBJS += $(PARMETIS_BUILD_DIR)/libparmetis.a $(METIS_BUILD_DIR)/libmetis.a
endif

ifeq ($(TECIO),YES)
Expand Down Expand Up @@ -259,3 +259,11 @@ endif

clean:
rm $(BIN)HiFiLES $(OBJ)*.o

install: default
mkdir -p ${PREFIX}/bin ${PREFIX}/data
cp -f $(BIN)HiFiLES ${PREFIX}/bin
chmod 755 ${PREFIX}/bin/HiFiLES
cp -f data/*.dat ${PREFIX}/data
chmod 644 ${PREFIX}/data/*.dat

42 changes: 0 additions & 42 deletions makefile.in

This file was deleted.

1 change: 1 addition & 0 deletions makefile.in
47 changes: 47 additions & 0 deletions makefiles/makefile.pleiades.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# \file Makefile.in
# \author - Original code: SD++ developed by Patrice Castonguay, Antony Jameson,
# Peter Vincent, David Williams (alphabetical by surname).
# - Current development: Aerospace Computing Laboratory (ACL)
# Aero/Astro Department. Stanford University.
# \version 0.1.0
#
# High Fidelity Large Eddy Simulation (HiFiLES) Code.
# Copyright (C) 2014 Aerospace Computing Laboratory (ACL).
#
# HiFiLES is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# HiFiLES is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with HiFiLES. If not, see <http://www.gnu.org/licenses/>.

PREFIX= $(HOME)/local/hifiles/git-gcc_4.9.3-sgi_mpt.2.12r26
NODE= CPU
CODE= RELEASE
BLAS= NO_BLAS
COMP= GCC
PARALLEL= MPI
TECIO= YES
MACHINE= PLEIADES

BLAS_DIR= /usr/local/atlas

PARMETIS_DIR = /u/dingraha/local/parmetis/4.0.3-gcc_4.9.3-sgi_mpt.2.12r26

PARMETIS_BUILD_DIR = $(PARMETIS_DIR)/lib

METIS_DIR = /u/dingraha/local/metis/5.1.0

METIS_BUILD_DIR = $(METIS_DIR)/lib

TECIO_DIR = lib/tecio-2008

CUDA_DIR = /usr/local/cuda-5.0

MPI_DIR = /nasa/sgi/mpt/2.12r26
4 changes: 2 additions & 2 deletions src/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2235,8 +2235,8 @@ void repartition_mesh(int &out_n_cells, array<int> &out_c2v, array<int> &out_c2n

int nparts = FlowSol->nproc;

float *tpwgts = (float*) calloc(klocal,sizeof(float));
for (int i=0;i<klocal;i++)
float *tpwgts = (float*) calloc(nparts,sizeof(float));
for (int i=0;i<nparts;i++)
tpwgts[i] = 1./ (float)FlowSol->nproc;

float *ubvec = (float*) calloc(ncon,sizeof(float));
Expand Down