Update How to add variables in the schema (pw.x and cp.x ) authored by Pietro Delugas's avatar Pietro Delugas
......@@ -84,12 +84,14 @@ You can add the variable in the schema as explained [above](#general-rules-when
1. You have then to update the files `qes_init_module.f90`, `qes_reset_module.f90`,`qes_bcast_module.f90` ,`qes_read_module.f90`,`qes_write_module.f90`,`qes_libs_module.f90`,`qes_types_module.f90`. To generate this files using `xmltools` it is sufficient to edit `generate_qes_libs_modules.py` setting the variable `input_xsd` to the path of your edited schema. Then run the script, the `output` directory will contain the updated versions of the source files. You have copy these files in the modules directory of QE.
1. You have now to edit the files:
1. Accordingly with the correspondence that you have designed between the input_parameters module variables and you new elements in the schema you have now to change these files:
i. `Modules/qexsd_input.f90` adding a routine dependent only on the input arguments that call the qes_init subroutin with the correct arguments.
1. `Modules/qexsd_input.f90` adding a routine dependent only on the input arguments that call the qes_init subroutin with the correct arguments.
i. `PW/src/pw_init_qexsd_input.f90` so as it calls the rouines in qexsd_input.f90 with the right arguments passing the values read from the input_parameters module.
1. `PW/src/pw_init_qexsd_input.f90` so as it calls the rouines in qexsd_input.f90 with the right arguments passing the values read from the input_parameters module.
## What to do when you want to add new element to the `output` element