Skip to content

steed188

Forum Replies Created

Viewing 6 posts - 31 through 36 (of 36 total)
  • Author
    Posts
  • in reply to: MPI run — pvd file fault #2622
    steed188
    Participant

    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 := HYBRID

    and made it again. But it didn’t work. The pvd file was still bad.

    yours steed188

    in reply to: MPI run — pvd file fault #2607
    steed188
    Participant

    Dear 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/&gt;
    #
    # 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 CHANGED

    CXX := g++
    #CXX := icpc -D__aligned__=ignored
    #CXX := mpiCC
    #CXX := mpic++

    OPTIM := -O3 -Wall
    DEBUG := -g -DOLB_DEBUG

    CXXFLAGS := $(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++14

    ARPRG := ar
    #ARPRG := xiar # mandatory for intel compiler

    LDFLAGS :=

    PARALLEL_MODE := OFF
    #PARALLEL_MODE := MPI
    #PARALLEL_MODE := OMP
    #PARALLEL_MODE := HYBRID

    MPIFLAGS :=
    OMPFLAGS := -fopenmp

    BUILDTYPE := precompiled
    #BUILDTYPE := generic

    ###########################################################################
    ## conditional settings

    ifeq ($(BUILDTYPE), precompiled)
    CXXFLAGS := -DOLB_PRECOMPILED $(CXXFLAGS)
    endif

    ifeq ($(PARALLEL_MODE), MPI)
    CXXFLAGS := -DPARALLEL_MODE_MPI $(MPIFLAGS) $(CXXFLAGS)
    endif

    ifeq ($(PARALLEL_MODE), OMP)
    CXXFLAGS := -DPARALLEL_MODE_OMP $(OMPFLAGS) $(CXXFLAGS)
    LDFLAGS := $(OMPFLAGS) $(LDFLAGS)
    endif

    ifeq ($(PARALLEL_MODE), HYBRID)
    CXXFLAGS := -DPARALLEL_MODE_OMP -DPARALLEL_MODE_MPI $(OMPFLAGS) $(MPIFLAGS) $(CXXFLAGS)
    LDFLAGS := $(OMPFLAGS) $(LDFLAGS)
    endif

    ###########################################################################
    ## defines shell

    SHELL := /bin/sh

    ###########################################################################
    ## dependencies, object, library directory and library name

    DEPENDDIR := build/$(BUILDTYPE)/dep
    OBJDIR := build/$(BUILDTYPE)/obj
    LIBDIR := build/$(BUILDTYPE)/lib
    LIB := olb

    ###########################################################################
    ## search directories

    SUBDIRS := 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/utilities

    EXAMPLEDIRS := 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/venturi3d

    INCLUDEDIRS := src \
    src/ \
    src/external

    BUILDTYPEDIRS := build/precompiled \
    build/generic

    SUBDIRSH := $(foreach d,$(SUBDIRS),$(ROOT)/$(d))
    IDIR := $(foreach d,$(INCLUDEDIRS),-I$(ROOT)/$(d))

    ###########################################################################
    ###########################################################################

    in reply to: MPI run — pvd file fault #2601
    steed188
    Participant

    Dear 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?

    in reply to: Calculate the time average velocity field #2599
    steed188
    Participant

    Dear 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,
    steed188

    in reply to: MPI run — pvd file fault #2598
    steed188
    Participant

    Dear 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,
    steed188

    in reply to: MPI run — pvd file fault #2595
    steed188
    Participant

    And I am using OpenLB 1.0, in the platform of CentOS linux 7.3.1611 with OpenMPI 1.6.3

Viewing 6 posts - 31 through 36 (of 36 total)