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

Modularize the code #23

Open
KenichiNomura opened this issue Jul 6, 2017 · 1 comment
Open

Modularize the code #23

KenichiNomura opened this issue Jul 6, 2017 · 1 comment

Comments

@KenichiNomura
Copy link
Member

To start, use type and module to organize variables and subroutines, make it easier to instantiate the MD context.

@KenichiNomura
Copy link
Member Author

it turns out that passing allocatable array to subroutines require 'interface' of the procedure however writing the interface in the users of the subroutine will make the code messy. Instead, module automatically generates the subroutine interface and use the module is a simpler solution.

There are two ways to share allocatable variable, 1. pass as argument and 2. share through module. Use of module takes care of the two.

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

1 participant