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

Converting node/element type to integer values #69

Merged
merged 18 commits into from
Mar 7, 2023
Merged

Conversation

stefanhenneking
Copy link
Contributor

@stefanhenneking stefanhenneking commented Feb 24, 2023

Defines integer parameters for node and element types in module node_types which are then used in ELEMS(element)%etype and NODES(node)%ntype instead of the previous character(len=4) types ELEMS(element)%type and NODES(node)%type.

This change increases the performance of type comparisons significantly. See also: #67

@stefanhenneking stefanhenneking added enhancement New feature or request WIP Work in progress labels Feb 24, 2023
@stefanhenneking stefanhenneking changed the title Introducing type parameters in data structure. Converting node/element type to integer values Feb 24, 2023
@LeszekDemkowicz
Copy link
Contributor

LeszekDemkowicz commented Feb 24, 2023 via email

@stefanhenneking
Copy link
Contributor Author

Stefan, I have looked it up. It looks good. Any particular reason why are you switching from `medg’ to ‘medge’ ? What can I help with at this point ? L

@LeszekDemkowicz

Since we introduced a global parameter MEDG in the data structure module, I needed to resolve conflicts with subroutines that had local variables named medg (due to Fortran's case insensitivity). I changed the local parameters from medg to medge to resolve the conflict.

@LeszekDemkowicz
Copy link
Contributor

LeszekDemkowicz commented Feb 24, 2023 via email

@stefanhenneking stefanhenneking linked an issue Feb 27, 2023 that may be closed by this pull request
@stefanhenneking stefanhenneking mentioned this pull request Feb 27, 2023
1 task
@stefanhenneking stefanhenneking removed the WIP Work in progress label Feb 27, 2023
@stefanhenneking stefanhenneking added the ready-for-review Ready to be reviewed label Feb 27, 2023
@stefanhenneking stefanhenneking marked this pull request as ready for review February 27, 2023 23:14
@stefanhenneking stefanhenneking mentioned this pull request Feb 28, 2023
@stefanhenneking
Copy link
Contributor Author

Merging this into master for more testing. (Stable branch is on release)

@stefanhenneking stefanhenneking merged commit 716b5b7 into master Mar 7, 2023
@stefanhenneking stefanhenneking deleted the node-type branch March 7, 2023 04:15
@stefanhenneking stefanhenneking removed the ready-for-review Ready to be reviewed label Mar 7, 2023
jdmorap pushed a commit that referenced this pull request Jul 25, 2023
* Introducing type parameters in data structure.

* Converting type to integer value in src code.

* minor

* type conversion of VECTOR_POISSON

* type conversion of MAXWELL GALERKIN

* type conversion of MPI TEST program

* type conversion of POISSON GALERKIN

* type conversion of POISSON PRIMAL DPG

* type conversion of SHEATHED HOSE

* type conversion of LASER COMMON

* type conversion of LASER UW_COUPLED

* bug fix

* remove unused

* minor change to gitignore

* fix bug in href

* minor

* implicit none and consistent style

* minor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert node/elem type to integer value
3 participants