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

EdgeMap FacePair out of range (-1) error with GenerateConnectivityFile, only installed with conda #55

Open
stella-bourdin opened this issue Jun 7, 2023 · 1 comment

Comments

@stella-bourdin
Copy link

Hi,

I encountered a problem that I was able to solve in the end but thought might be of interest rising:
I had first installed TempestExtremes on a new machine using conda.
I wanted to generate the connectivity file from the a SCRIP file, and here was the output:

bash-4.4$ GenerateConnectivityFile --in_mesh scrip.nc --out_connect out.txt
Arguments:
  --in_mesh <string> ["scrip.nc"]
  --in_concave <bool> [false]
  --out_type <string> ["FV"] [FV|CGLL|DGLL]
  --out_np <integer> [4]
  --out_connect <string> ["out.txt"]
------------------------------------------------------------
Loading mesh
..SCRIP Format File detected
..13107188 duplicate nodes detected
..Mesh size: Nodes [2621452] Elements [5242880]
..Done
Calculating connectivity information
..Mesh size: Edges [7864332]
..Done
Converting mesh to connectivity format
..EXCEPTION (/home/conda/feedstock_root/build_artifacts/tempest-extremes_1643338652905/work/src/base/SimpleGrid.cpp, Line 794) EdgeMap FacePair out of range (-1)

In the meantime, I had managed to install and compile the package via make, and when using this version, the exact same command line worked!

> ./tempestextremes/bin/GenerateConnectivityFile --in_mesh scrip.nc --out_connect connect.txt             
Arguments:
  --in_mesh <string> ["scrip.nc"]
  --in_concave <bool> [false]
  --out_type <string> ["FV"] [FV|CGLL|DGLL]
  --out_np <integer> [4]
  --out_connect <string> ["connect.txt"]
------------------------------------------------------------
Loading mesh
..SCRIP Format File detected
..13107188 duplicate nodes detected
..Mesh size: Nodes [2621452] Elements [5242880]
..Done
Calculating connectivity information
..WARNING: 812 small elements found
..Mesh size: Edges [7864332]
..Done
Converting mesh to connectivity format
..One-sided edges: 24
..Total calculated area: 6.138748655767176e-01 sr
..Done
Writing connectivity file.. Done
------------------------------------------------------------

Regards,
Stella

@paullric
Copy link
Collaborator

paullric commented Jun 7, 2023 via email

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