Hi devs,
I found that the iface range (please check the two links below) might be meaningless. Any comments?
Thanks,
Runjian
Hi Runjian,
What do you mean by the iface range “might be meaningless”? Are you saying unstructured_grid%cell_vertices(0,local_id) or unstructured_grid%cell_vertices(0,cell_id2) might be garbage values?
-Gautam
From:
pflotr...@googlegroups.com <pflotr...@googlegroups.com> on behalf of Runjian Wu <wuru...@gmail.com>
Date: Tuesday, July 11, 2023 at 4:22 AM
To: pflotr...@googlegroups.com <pflotr...@googlegroups.com>
Subject: [pflotran-dev: 6202] iface range
Check twice before you click! This email originated from outside PNNL.
--
You received this message because you are subscribed to the Google Groups "pflotran-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pflotran-dev...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pflotran-dev/3e637ebb-89cc-d7ad-e0c6-9bd3ef294635%40gmail.com.
Hi Gautam,
Yes, I believe it should be like this.
cell_type = unstructured_grid%cell_type(local_id)
nfaces = UCellGetNFaces(cell_type,option)
do iface = 1, nfaces
Runjian
To view this discussion on the web visit https://groups.google.com/d/msgid/pflotran-dev/CO6PR09MB853639E22AB54AD0165D5E50F731A%40CO6PR09MB8536.namprd09.prod.outlook.com.
The issue that I see is that we are looping over cell faces, but the zeroth entry in %cell_vertices is the number of cell vertices. Will need to look into it.
Glenn
To view this discussion on the web visit https://groups.google.com/d/msgid/pflotran-dev/CAEK3KstVz2RijCc_%3DRW_P6%2Bn%3DEk4sSb4QoKTTxz1rCsZQRxtVA%40mail.gmail.com.