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

I can't find DENISE.inp in folder /DENISE/par #32

Closed
z981201 opened this issue Mar 27, 2021 · 1 comment
Closed

I can't find DENISE.inp in folder /DENISE/par #32

z981201 opened this issue Mar 27, 2021 · 1 comment

Comments

@z981201
Copy link

z981201 commented Mar 27, 2021

I've done the installation by reading manual_denise.pdf. And section 5.4 "Running the program" says I should have a DENISE.inp and FWI_workflow.inp in folder /par. However I only have DENISE_marm_OBC.inp, FWI_workflow_marmousi.inp and RTM_workflow_marmousi.inp three .inp files, the same in https://github.com/daniel-koehn/DENISE-Black-Edition/tree/master/par.

I've changed the filename DENISE_marm_OBC.inp to DENISE.inp and FWI_workflow_marmousi.inp to FWI_workflow.inp, and ran

mpirun -np 8 ../bin/denise DENISE.inp FWI_workflow.inp

It gave an RUN-TIME ERROR output below:

[iampora@localhost par]$ mpirun -np 8 ../bin/denise DENISE.inp FWI_workflow.inp
 *******************************************************************************
 This is program DENISE Black-Edition                                           
 Parallel 2-D elastic Finite Difference FWI code                                
                                                                                
 Forward/FWI/RTM codes written by D. Koehn and D. De Nil                        
 2D isotropic PSV forward code partly based on FDVEPS written by T. Bohlen      
 Institute of Geosciences, Kiel University, Germany                           

 See README.md file and LICENSE.md for redistribution conditions.               
 *******************************************************************************


 **Message from check_model_phys (printed by PE 0):

 -----------------------  DENISE operation mode  ----------------------
 MODE=0: Only forward modeling is applied.


 -----------------------  DENISE Physics  ----------------------
 PHYSICS=1: Solve 2D isotropic elastic PSV problem.


In FD_PSV MYID = 0, COLOR =0, MYID_SHOT = 0 
 This is the log-file generated by PE 0 

Message from PE 0
R U N - T I M E  E R R O R: 
Number of processors specified in the parameter file 
 and at command line (NP) differ !
...now exiting to system.
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
[iampora@localhost par]$ mpirun -np 8 ../bin/denise DENISE.inp FWI_workflow.inp > DENISE.out
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0

So where should I get those two .inp files and how should I run the example program?

@daniel-koehn
Copy link
Owner

For the Marmousi-2 example DENISE.par is equal to DENISE_marm_OBC.inp. The error message is related to the number of cores you are using. The total number of processors should be equal to the product of the parameters NPROCX * NPROCY, defined in line 15 & 16 of DENISE_marm_OBC.inp:

number_of_processors_in_x-direction_(NPROCX) = 5

In your case you have to set NPROCX = 4, NPROCY =2, resulting in NPROC = NPROCX * NPROCY = 8. For further details how you can decompose your Cartesian FD grid, I refer to the user manual.

Best regards,

Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants