Code Monkey home page Code Monkey logo

mc3deconv's People

Contributors

akuhara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mc3deconv's Issues

cannot run in 4 cores

Hello there, I'm interesting in your method calculating deconvolution, and planning to apply it to S wave receiver function caculations.

But I cannot compile and run your code in a full success. I only have few experience in compiling fortran codes, a little experience developing openmp application on C/C++ and writing Makefiles.

platform: manjaro(archlinux), gfortran version 13.1.1, openmpi 4.1.5-1

I will list my problems down bellow

  1. Compiling stage:
src/output.f90 -o src/output.o 
src/output.f90:49:18:

   46 |   call mpi_reduce(nmod, nmod_sum, 1, MPI_INTEGER4, &
      |                  2
......
   49 |   call mpi_reduce(nprop, nprop_sum, ntype, MPI_INTEGER4, &
      |                  1
Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
src/output.f90:49:25:

   46 |   call mpi_reduce(nmod, nmod_sum, 1, MPI_INTEGER4, &
      |                        2 
......
   49 |   call mpi_reduce(nprop, nprop_sum, ntype, MPI_INTEGER4, &
      |                         1
Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
src/output.f90:52:18:

   46 |   call mpi_reduce(nmod, nmod_sum, 1, MPI_INTEGER4, &
      |                  2
......
   52 |   call mpi_reduce(naccept, naccept_sum, ntype, MPI_INTEGER4, &
      |                  1
Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
src/output.f90:52:27:

   46 |   call mpi_reduce(nmod, nmod_sum, 1, MPI_INTEGER4, &
      |                        2   
......
   52 |   call mpi_reduce(naccept, naccept_sum, ntype, MPI_INTEGER4, &
      |                           1
Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)

after searching for solution, I add -fallow-argument-mismatch at FFLAGS in Makefile.

But in sample1, I can't run code in 4 core like

mpirun -np 4 ../bin/mc3deconv

for it run slower than using 2 cores, and stuck in writing file stage(wiered.
but it works well in using just 2 cores

  1. FFLAGS for debug

since my gfortran version is way newer than my colleagues in office(they are using Ubuntu 16.04 or even lower), I tried to add restriction for compiling, like switching mpifort to gfortran and add -fopenmp -I/usr/include -std=f95 -Wall to FFLAGS

the output warning is even more confusing and I quote a few part bellow:

mpif-sizeof.h:66:42:                                                                                        

Error: Fortran 2008: Array specification at (1) with more than 7 dimensions
mpif-sizeof.h:115:14:

Error: Parameter ‘real128’ at (1) has not been declared or is a variable, which does not reduce to a constant
mpif-sizeof.h:128:26:

Error: Fortran 2003: module nature in USE statement at (1)

confused,

sac headers

Hello there, it's me again.
I'm trying run your code on Prof. Lupei Zhu's samples (in his hk software package)for testing.
But it falls when reading sac headers and rings:

ERROR: in sampling interval:  0.10000000000000001
ERROR: in sampling interval:  0.10000000000000001

We all know it occasionally happens on sac headers, but how to deal with it?
eager for your help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.