diff --git a/docs/source/programmers_guide/plugins.rst b/docs/source/programmers_guide/plugins.rst index 8f00b895..e30e1396 100644 --- a/docs/source/programmers_guide/plugins.rst +++ b/docs/source/programmers_guide/plugins.rst @@ -1,12 +1,57 @@ -===================== -Creating a new plugin -===================== + +========================== +Working with plugins +========================== + + +Installing a remote plugin +-------------------------- + +Download an external repository of plugins:: + + qp_plugins download http://somewhere/over/the/rainbow/ext_repo + + +This installs the repository of external plugins :file:`ext_repo` in +:file:`$QP_ROOT/plugins`. + +Now, the external plugin :file:`ext_module` contained in the repository +:file:`ext_repo` can be installed using:: + + qp_plugins install ext_module + + +The module is now accessible via a symbolic link in :file:`$QP_ROOT/src`, +and can be compiled as any module. + + +To uninstall the plugin, run:: + + qp_plugins uninstall ext_module + + + + + +Creating a repository of plugins +-------------------------------- Create a repository, for example :file:`qp_plugins_user`, hosted somewhere (GitLab, GitHub, etc...), and clone the repository in the :file:`$QP_ROOT/plugins` directory. +Creating new plugins +-------------------- + +To create a new plugin named :file:`my_plugin` in this repository, run:: + + qp_plugins create -n my_plugin -r qp_plugins_user + + +Now, the plugin needs to be installed to be compiled:: + + qp_plugins install my_plugin diff --git a/scripts/module/module_handler.py b/scripts/module/module_handler.py index 8256d14c..22677d33 100755 --- a/scripts/module/module_handler.py +++ b/scripts/module/module_handler.py @@ -6,6 +6,7 @@ Module utilitary Usage: module_handler.py print_descendant [...] module_handler.py clean [ --all | ...] + module_handler.py create_git_ignore [...] Options: print_descendant Print the genealogy of the needed modules @@ -262,4 +263,5 @@ if __name__ == '__main__': except: pass - + if arguments["create_git_ignore"]: + pass diff --git a/src/fci/selection_buffer.irp.f b/src/fci/selection_buffer.irp.f index 3053213f..f30f6e44 100644 --- a/src/fci/selection_buffer.irp.f +++ b/src/fci/selection_buffer.irp.f @@ -222,7 +222,6 @@ subroutine make_selection_buffer_s2(b) endif enddo if (dup) then -! val(i) = val(i) + val(j) val(i) = max(val(i), val(j)) duplicate(j) = .True. endif @@ -295,7 +294,7 @@ subroutine make_selection_buffer_s2(b) if (k > n_d) exit enddo deallocate(o) - b%N = 2*n_d + b%N = n_d b%cur = n_d end