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

the SPECFEM3D_Cartesian code does not work from the root directory #109

Closed
komatits opened this issue Mar 24, 2014 · 6 comments
Closed

the SPECFEM3D_Cartesian code does not work from the root directory #109

komatits opened this issue Mar 24, 2014 · 6 comments
Labels

Comments

@komatits
Copy link
Contributor

The SPECFEM3D_Cartesian code does not work from the root directory, when running the defaut Par_file from there the codes try to open a file from a directory one level above (../DATA), which of course does not exist:

user@laptop: ./bin/xdecompose_mesh 40 DATA/Par_file OUTPUT_FILES/DATABASES_MPI/
Can't open '../DATA/Par_file'

opening file failed, please check your file path and run-directory.
error opening Par_file

Same problem in xgenerate_databases and xspecfem3D I think.

@komatits komatits added the bug label Mar 24, 2014
@mpbl
Copy link

mpbl commented Mar 24, 2014

I do not know if that is an issue. But that is clearly inconsistent with SPECFEM3D_GLOBE that is ran with ./bin/xspecfem3d from the root directory, while SPECFEM3D_Cartesian is ran with ./xspecfem3d from the bin/ directory.

@mpbl
Copy link

mpbl commented Mar 24, 2014

By the way, that is pseudo-user-defined in setup/constants.h(.in) (where you specify the directory structure).

@komatits
Copy link
Contributor Author

Thanks. Let us change it, because both 2D and 3D_GLOBE run from the root
dir. (no need to leave the other option of running from "bin", which is
confusing)

thanks
Dimitri

On 24/03/2014 20:48, Matthieu Lefebvre wrote:

I do not know if that is an issue. But that is clearly inconsistent with
SPECFEM3D_GLOBE that is ran with ./bin/xspecfem3d from the root
directory, while SPECFEM3D_Cartesian is ran with ./xspecfem3d from the
bin/ directory.


Reply to this email directly or view it on GitHub
#109 (comment).

Dimitri Komatitsch
CNRS Research Director (DR CNRS), Laboratory of Mechanics and Acoustics,
UPR 7051, Marseille, France http://komatitsch.free.fr

@mpbl
Copy link

mpbl commented Mar 26, 2014

@komatits Can you please check that everything is properly changed in the examples?
Then we can close this issue.
Thanks a lot.

@komatits
Copy link
Contributor Author

Tested, and works fine. Thanks for fixing it. Let me close the issue then.

On 26/03/2014 15:41, Matthieu Lefebvre wrote:

@komatits https://github.com/komatits Can you please check that
everything is properly changed in the examples?
Then we can close this issue.
Thanks a lot.


Reply to this email directly or view it on GitHub
#109 (comment).

Dimitri Komatitsch
CNRS Research Director (DR CNRS), Laboratory of Mechanics and Acoustics,
UPR 7051, Marseille, France http://komatitsch.free.fr

@komatits
Copy link
Contributor Author

Not sure if the "process.sh" scripts in the examples still work fine
though, now that the paths have changed (I have only tested the two new
scripts that I have added a few minutes ago, and which run the two
default examples from the root dir)

On 26/03/2014 23:51, Dimitri Komatitsch wrote:

Tested, and works fine. Thanks for fixing it. Let me close the issue then.

On 26/03/2014 15:41, Matthieu Lefebvre wrote:

@komatits https://github.com/komatits Can you please check that
everything is properly changed in the examples?
Then we can close this issue.
Thanks a lot.


Reply to this email directly or view it on GitHub
#109 (comment).

Dimitri Komatitsch
CNRS Research Director (DR CNRS), Laboratory of Mechanics and Acoustics,
UPR 7051, Marseille, France http://komatitsch.free.fr

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

No branches or pull requests

2 participants