steed188
Forum Replies Created
-
AuthorPosts
-
steed188Participant
I tried to modified the Makefile.inc like belowed
#CXX := g++
#CXX := icpc -D__aligned__=ignored
#CXX := mpiCC
CXX := mpic++
…….
#PARALLEL_MODE := OFF
PARALLEL_MODE := MPI
#PARALLEL_MODE := OMP
#PARALLEL_MODE := HYBRIDand made it again. But it didn’t work. The pvd file was still bad.
yours steed188
steed188ParticipantDear albert.min-k,
you mean the Makefile.inc file in the root folder of OpenLB? Listed below:# This file is part of the OpenLB library
#
# Copyright (C) 2007 Mathias Krause
# E-mail contact: info@openlb.net
# The most recent release of OpenLB can be downloaded at
# <http://www.openlb.net/>
#
# This program 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 2
#
# This program 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 this program; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.###########################################################################
###########################################################################
## DEFINITIONS TO BE CHANGEDCXX := g++
#CXX := icpc -D__aligned__=ignored
#CXX := mpiCC
#CXX := mpic++OPTIM := -O3 -Wall
DEBUG := -g -DOLB_DEBUGCXXFLAGS := $(OPTIM)
#CXXFLAGS := $(DEBUG)# to enable std::shared_ptr in functor arithmetik
# works in gcc 4.3 and later, source https://gcc.gnu.org/projects/cxx0x.html
CXXFLAGS += -std=c++0x
# works in gcc 4.7 and later (recommended)
#CXXFLAGS += -std=c++11#CXXFLAGS += -fdiagnostics-color=auto
#CXXFLAGS += -std=gnu++14ARPRG := ar
#ARPRG := xiar # mandatory for intel compilerLDFLAGS :=
PARALLEL_MODE := OFF
#PARALLEL_MODE := MPI
#PARALLEL_MODE := OMP
#PARALLEL_MODE := HYBRIDMPIFLAGS :=
OMPFLAGS := -fopenmpBUILDTYPE := precompiled
#BUILDTYPE := generic###########################################################################
## conditional settingsifeq ($(BUILDTYPE), precompiled)
CXXFLAGS := -DOLB_PRECOMPILED $(CXXFLAGS)
endififeq ($(PARALLEL_MODE), MPI)
CXXFLAGS := -DPARALLEL_MODE_MPI $(MPIFLAGS) $(CXXFLAGS)
endififeq ($(PARALLEL_MODE), OMP)
CXXFLAGS := -DPARALLEL_MODE_OMP $(OMPFLAGS) $(CXXFLAGS)
LDFLAGS := $(OMPFLAGS) $(LDFLAGS)
endififeq ($(PARALLEL_MODE), HYBRID)
CXXFLAGS := -DPARALLEL_MODE_OMP -DPARALLEL_MODE_MPI $(OMPFLAGS) $(MPIFLAGS) $(CXXFLAGS)
LDFLAGS := $(OMPFLAGS) $(LDFLAGS)
endif###########################################################################
## defines shellSHELL := /bin/sh
###########################################################################
## dependencies, object, library directory and library nameDEPENDDIR := build/$(BUILDTYPE)/dep
OBJDIR := build/$(BUILDTYPE)/obj
LIBDIR := build/$(BUILDTYPE)/lib
LIB := olb###########################################################################
## search directoriesSUBDIRS := src/boundary \
src/communication \
src/dynamics \
src/core \
src/geometry \
src/external/tinyxml \
src/functors \
src/functors/indicator \
src/io \
src/particles \
src/particles/forces \
src/particles/boundaries \
src/utilitiesEXAMPLEDIRS := examples/aorta3d \
examples/bifurcation3d/eulerEuler \
examples/bifurcation3d/eulerLagrange \
examples/bstep2d \
examples/bstep3d \
examples/cavity2d/sequential \
examples/cavity2d/parallel \
examples/cavity3d/sequential \
examples/cavity3d/parallel \
examples/cylinder2d \
examples/cylinder3d \
examples/multiComponent2d \
examples/multiComponent3d \
examples/nozzle3d \
examples/phaseSeparation2d \
examples/phaseSeparation3d \
examples/poiseuille2d/bgk \
examples/poiseuille2d/forced \
examples/poiseuille2d/mrt \
examples/thermal2d \
examples/thermal3d \
examples/venturi3dINCLUDEDIRS := src \
src/ \
src/externalBUILDTYPEDIRS := build/precompiled \
build/genericSUBDIRSH := $(foreach d,$(SUBDIRS),$(ROOT)/$(d))
IDIR := $(foreach d,$(INCLUDEDIRS),-I$(ROOT)/$(d))###########################################################################
###########################################################################steed188ParticipantDear albert.min-k,
I’d love to. I agree with you that it may be my MPI’s fault. I have tried OpenLB1.1. The fault still existed.
Would you mind telling me how can I post the Makefile.inc in the OpenLB project?steed188ParticipantDear Marc,
I’m happy that you focused on my question.
I’m new in LBM, trying SmagorinskyBGKdynamics for high Reynolds numbers flow in outdoor wind environment. Yeah, it is very important to get time averaged velocity. If there is no functor in OpenLB, I hope to develop it maybe later for I have to take some time to be familiar with OpenLB firstly. Let’s work on it together if you would like to.Best,
steed188steed188ParticipantDear albert.min-k,
Thank you so much for your focus on my question.
When I execute sequential, the pvd file is correct. But when I excute Parellel, the file is wrong. I seems like that the processors scrambled to write the vti files in the pvd file with out an order sequencing, leading the file fault.
And I can’t open the wrong pvd file with web browser, showing error.
Regards,
steed188steed188ParticipantAnd I am using OpenLB 1.0, in the platform of CentOS linux 7.3.1611 with OpenMPI 1.6.3
-
AuthorPosts