packmol 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- packmol-0.1.0/.github/workflows/actions.yml +45 -0
- packmol-0.1.0/.github/workflows/build-wheels.yaml +67 -0
- packmol-0.1.0/.gitignore +21 -0
- packmol-0.1.0/AUTHORS +11 -0
- packmol-0.1.0/CHANGELOG.md +28 -0
- packmol-0.1.0/CMakeLists.txt +60 -0
- packmol-0.1.0/LICENSE +21 -0
- packmol-0.1.0/Makefile +215 -0
- packmol-0.1.0/PKG-INFO +115 -0
- packmol-0.1.0/README.md +98 -0
- packmol-0.1.0/app/packmol.f90 +981 -0
- packmol-0.1.0/compile_cmake.sh +26 -0
- packmol-0.1.0/configure +53 -0
- packmol-0.1.0/fpm.toml +19 -0
- packmol-0.1.0/header +5 -0
- packmol-0.1.0/pyproject.toml +40 -0
- packmol-0.1.0/python/hatch_build.py +113 -0
- packmol-0.1.0/python/packmol/__init__.py +7 -0
- packmol-0.1.0/python/packmol/binaries/.gitignore +1 -0
- packmol-0.1.0/python/packmol/binaries/packmol +0 -0
- packmol-0.1.0/python/packmol/cli.py +68 -0
- packmol-0.1.0/solvate.tcl +7625 -0
- packmol-0.1.0/src/ahestetic.f90 +41 -0
- packmol-0.1.0/src/cell_indexing.f90 +63 -0
- packmol-0.1.0/src/cenmass.f90 +103 -0
- packmol-0.1.0/src/checkpoint.f90 +116 -0
- packmol-0.1.0/src/cli_parser.f90 +241 -0
- packmol-0.1.0/src/comparegrad.f90 +98 -0
- packmol-0.1.0/src/comprest.f90 +215 -0
- packmol-0.1.0/src/compute_data.f90 +62 -0
- packmol-0.1.0/src/computef.f90 +154 -0
- packmol-0.1.0/src/computeg.f90 +245 -0
- packmol-0.1.0/src/exit_codes.f90 +19 -0
- packmol-0.1.0/src/flashmod.f90 +21 -0
- packmol-0.1.0/src/flashsort.f90 +95 -0
- packmol-0.1.0/src/fparc.f90 +78 -0
- packmol-0.1.0/src/gencan.f +5992 -0
- packmol-0.1.0/src/gencan_ieee_signal_routines.f90 +45 -0
- packmol-0.1.0/src/getinp.f90 +1146 -0
- packmol-0.1.0/src/gparc.f90 +87 -0
- packmol-0.1.0/src/gwalls.f90 +327 -0
- packmol-0.1.0/src/heuristics.f90 +150 -0
- packmol-0.1.0/src/initial.f90 +558 -0
- packmol-0.1.0/src/input.f90 +82 -0
- packmol-0.1.0/src/jacobi.f90 +106 -0
- packmol-0.1.0/src/output.f90 +598 -0
- packmol-0.1.0/src/pbc.f90 +32 -0
- packmol-0.1.0/src/pgencan.f90 +98 -0
- packmol-0.1.0/src/polartocart.f90 +100 -0
- packmol-0.1.0/src/random.f90 +47 -0
- packmol-0.1.0/src/resetcells.f90 +43 -0
- packmol-0.1.0/src/restmol.f90 +70 -0
- packmol-0.1.0/src/setsizes.f90 +362 -0
- packmol-0.1.0/src/sizes.f90 +29 -0
- packmol-0.1.0/src/strlength.f90 +97 -0
- packmol-0.1.0/src/swaptype.f90 +89 -0
- packmol-0.1.0/src/swaptypemod.f90 +16 -0
- packmol-0.1.0/src/title.f90 +19 -0
- packmol-0.1.0/src/tobar.f90 +42 -0
- packmol-0.1.0/src/usegencan.f90 +18 -0
- packmol-0.1.0/src/writesuccess.f90 +49 -0
- packmol-0.1.0/testing/Project.toml +3 -0
- packmol-0.1.0/testing/input_files/benzene2.inp +12 -0
- packmol-0.1.0/testing/input_files/bilayer.inp +40 -0
- packmol-0.1.0/testing/input_files/bilayer_pbc.inp +39 -0
- packmol-0.1.0/testing/input_files/ieee_signaling.inp +23 -0
- packmol-0.1.0/testing/input_files/mixture.inp +18 -0
- packmol-0.1.0/testing/input_files/mixture_pbc.inp +21 -0
- packmol-0.1.0/testing/input_files/only_one_fixed.inp +10 -0
- packmol-0.1.0/testing/input_files/protein_outside_pbc_error.inp +20 -0
- packmol-0.1.0/testing/input_files/solvprotein.inp +34 -0
- packmol-0.1.0/testing/input_files/solvprotein_pbc.inp +21 -0
- packmol-0.1.0/testing/input_files/spherical.inp +42 -0
- packmol-0.1.0/testing/input_files/spherical_pbc.inp +42 -0
- packmol-0.1.0/testing/input_files/toy_with_fixed.inp +26 -0
- packmol-0.1.0/testing/input_files/water_box.inp +14 -0
- packmol-0.1.0/testing/input_files/water_box_failed.inp +16 -0
- packmol-0.1.0/testing/input_files/water_box_pbc.inp +18 -0
- packmol-0.1.0/testing/input_files/water_box_pbc2.inp +19 -0
- packmol-0.1.0/testing/input_files/water_box_pbc_negative_coordinates.inp +16 -0
- packmol-0.1.0/testing/input_files/water_box_pbc_outside_box.inp +19 -0
- packmol-0.1.0/testing/input_files/water_box_pbc_slab.inp +17 -0
- packmol-0.1.0/testing/install_julia.sh +9 -0
- packmol-0.1.0/testing/output_files/benzene2.pdb +66 -0
- packmol-0.1.0/testing/runtests.jl +108 -0
- packmol-0.1.0/testing/structure_files/CLA.pdb +2 -0
- packmol-0.1.0/testing/structure_files/SOD.pdb +2 -0
- packmol-0.1.0/testing/structure_files/benzene.pdb +34 -0
- packmol-0.1.0/testing/structure_files/ieee_signaling.pdb +5 -0
- packmol-0.1.0/testing/structure_files/ieee_signaling_box.pdb +21848 -0
- packmol-0.1.0/testing/structure_files/palmitoil.pdb +43 -0
- packmol-0.1.0/testing/structure_files/protein.pdb +4248 -0
- packmol-0.1.0/testing/structure_files/spherical.pdb +3006 -0
- packmol-0.1.0/testing/structure_files/urea.pdb +17 -0
- packmol-0.1.0/testing/structure_files/water.pdb +10 -0
- packmol-0.1.0/testing/structure_files/water_box.pdb +18 -0
- packmol-0.1.0/testing/test.sh +34 -0
- packmol-0.1.0/testing/test_cli.sh +240 -0
- packmol-0.1.0/testing/test_connectivity.sh +11 -0
- packmol-0.1.0/testing/test_failed.sh +26 -0
- packmol-0.1.0/update_version.sh +41 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: actions
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
- push
|
|
5
|
+
- pull_request
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ${{ matrix.os }}
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
# windows-latest is disabled due to cmake failure:
|
|
14
|
+
# https://github.com/awvwgk/setup-fortran/issues/6
|
|
15
|
+
os: [ubuntu-latest, macOS-latest]
|
|
16
|
+
gcc_version: [13]
|
|
17
|
+
compiler: ['make', 'cmake']
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v3
|
|
21
|
+
- uses: fortran-lang/setup-fortran@main
|
|
22
|
+
id: setup-fortran
|
|
23
|
+
with:
|
|
24
|
+
compiler: gcc
|
|
25
|
+
version: ${{ matrix.gcc_version }}
|
|
26
|
+
|
|
27
|
+
- name: Compile using make
|
|
28
|
+
if: matrix.compiler == 'make'
|
|
29
|
+
run: |
|
|
30
|
+
./configure
|
|
31
|
+
make
|
|
32
|
+
shell: bash
|
|
33
|
+
|
|
34
|
+
- name: Compile using cmake
|
|
35
|
+
if: matrix.compiler == 'cmake'
|
|
36
|
+
run: |
|
|
37
|
+
cmake ./ && cmake --build ./
|
|
38
|
+
shell: bash
|
|
39
|
+
|
|
40
|
+
- name: Run
|
|
41
|
+
run: |
|
|
42
|
+
cd testing
|
|
43
|
+
./install_julia.sh
|
|
44
|
+
./test.sh
|
|
45
|
+
shell: bash
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: Build and upload to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
release:
|
|
6
|
+
types:
|
|
7
|
+
- published
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build_wheels:
|
|
11
|
+
name: Build wheels on ${{ matrix.os }}
|
|
12
|
+
runs-on: ${{ matrix.os }}
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-15-intel, macos-latest]
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v5
|
|
20
|
+
- name: Build wheels
|
|
21
|
+
uses: pypa/cibuildwheel@v3.3.0
|
|
22
|
+
env:
|
|
23
|
+
# Set macOS deployment target dynamically based on runner
|
|
24
|
+
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=15.0
|
|
25
|
+
|
|
26
|
+
- name: Upload wheels
|
|
27
|
+
uses: actions/upload-artifact@v4
|
|
28
|
+
with:
|
|
29
|
+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
|
30
|
+
path: ./wheelhouse/*.whl
|
|
31
|
+
|
|
32
|
+
build_sdist:
|
|
33
|
+
name: Build source distribution
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v5
|
|
37
|
+
- name: Install uv
|
|
38
|
+
uses: astral-sh/setup-uv@v5
|
|
39
|
+
|
|
40
|
+
- name: Build SDist
|
|
41
|
+
run: uv build --sdist
|
|
42
|
+
|
|
43
|
+
- name: Upload SDist
|
|
44
|
+
uses: actions/upload-artifact@v4
|
|
45
|
+
with:
|
|
46
|
+
name: cibw-sdist
|
|
47
|
+
path: dist/*.tar.gz
|
|
48
|
+
|
|
49
|
+
upload_pypi:
|
|
50
|
+
needs: [build_wheels, build_sdist]
|
|
51
|
+
environment:
|
|
52
|
+
name: pypi
|
|
53
|
+
url: https://pypi.org/p/packmol
|
|
54
|
+
permissions:
|
|
55
|
+
id-token: write
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
if: github.event_name == 'release' && github.event.action == 'published'
|
|
58
|
+
steps:
|
|
59
|
+
- name: Download all artifacts
|
|
60
|
+
uses: actions/download-artifact@v5
|
|
61
|
+
with:
|
|
62
|
+
pattern: cibw-*
|
|
63
|
+
path: dist
|
|
64
|
+
merge-multiple: true
|
|
65
|
+
|
|
66
|
+
- name: Publish to PyPI
|
|
67
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
packmol-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
build/
|
|
2
|
+
CMakeFiles/
|
|
3
|
+
*.mod
|
|
4
|
+
*.o
|
|
5
|
+
*.swp
|
|
6
|
+
/packmol
|
|
7
|
+
CMakeCache.txt
|
|
8
|
+
cmake_install.cmake
|
|
9
|
+
tmpfile.txt
|
|
10
|
+
testing/ieee_signaling_box.pdb
|
|
11
|
+
testing/water_box.pdb
|
|
12
|
+
testing/water_box.pdb_FORCED
|
|
13
|
+
testing/packmol.log
|
|
14
|
+
testing/Manifest.toml
|
|
15
|
+
testing/output.pdb
|
|
16
|
+
testing/output.pdb_FORCED
|
|
17
|
+
testing/input_files/Manifest.toml
|
|
18
|
+
testing/input_files/Project.toml
|
|
19
|
+
testing/chkgrad.log
|
|
20
|
+
.vscode/settings.json
|
|
21
|
+
__pycache__/
|
packmol-0.1.0/AUTHORS
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
L. Martinez, R. Andrade, E. G. Birgin, J. M. Martinez. Packmol: A
|
|
2
|
+
package for building initial configurations for molecular dynamics
|
|
3
|
+
simulations. Journal of Computational Chemistry, 30(13):2157-2164,
|
|
4
|
+
2009.
|
|
5
|
+
|
|
6
|
+
J. M. Martinez and L. Martinez. Packing optimization for automated
|
|
7
|
+
generation of complex system's initial configurations for molecular
|
|
8
|
+
dynamics and docking. Journal of Computational Chemistry, 24(7):819-825,
|
|
9
|
+
2003.
|
|
10
|
+
|
|
11
|
+
Home-Page: http://m3g.iqm.unicamp.br/packmol
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
packmol changelog
|
|
2
|
+
===========================
|
|
3
|
+
|
|
4
|
+
[badge-breaking]: https://img.shields.io/badge/BREAKING-red.svg
|
|
5
|
+
[badge-deprecation]: https://img.shields.io/badge/Deprecation-orange.svg
|
|
6
|
+
[badge-feature]: https://img.shields.io/badge/Feature-green.svg
|
|
7
|
+
[badge-experimental]: https://img.shields.io/badge/Experimental-yellow.svg
|
|
8
|
+
[badge-enhancement]: https://img.shields.io/badge/Enhancement-blue.svg
|
|
9
|
+
[badge-bugfix]: https://img.shields.io/badge/Bugfix-purple.svg
|
|
10
|
+
[badge-fix]: https://img.shields.io/badge/Fix-purple.svg
|
|
11
|
+
[badge-info]: https://img.shields.io/badge/Info-gray.svg
|
|
12
|
+
|
|
13
|
+
Version 21.1.2-DEV
|
|
14
|
+
--------------
|
|
15
|
+
- ![INFO][badge-info] The `release.sh` script was renamed to `update_version.sh` and just updates version numbers in the files, without tagging a release.
|
|
16
|
+
|
|
17
|
+
Version 21.1.1
|
|
18
|
+
--------------
|
|
19
|
+
- ![INFO][badge-info] Update minimum CMake compatibility to 3.5.0.
|
|
20
|
+
- ![INFO][badge-info] Add a remark to what is written as `CRYST1` information when no-PBCs are used. Suggest using PBCs Fixes [103](https://github.com/m3g/packmol/issues/103). Update the documentation accordingly.
|
|
21
|
+
|
|
22
|
+
Version 21.1.0
|
|
23
|
+
--------------
|
|
24
|
+
- ![FEATURE][badge-feature] Support CLI input and output file specifications (i. e. `-i input.inp -o output.pdb`) ([PR](https://github.com/m3g/packmol/pull/101)).
|
|
25
|
+
|
|
26
|
+
Version 21.0.4
|
|
27
|
+
--------------
|
|
28
|
+
- For older versions, see the [releases page](https://github.com/m3g/packmol/releases).
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.5)
|
|
2
|
+
project(packmol Fortran)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
if(NOT CMAKE_BUILD_TYPE)
|
|
6
|
+
set(CMAKE_BUILD_TYPE Release)
|
|
7
|
+
endif(NOT CMAKE_BUILD_TYPE)
|
|
8
|
+
|
|
9
|
+
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
|
|
10
|
+
add_compile_options(
|
|
11
|
+
-Wall "$<$<CONFIG:Debug>:-Werror>"
|
|
12
|
+
)
|
|
13
|
+
endif()
|
|
14
|
+
|
|
15
|
+
# Build the executable
|
|
16
|
+
add_executable(packmol
|
|
17
|
+
src/exit_codes.f90
|
|
18
|
+
src/cenmass.f90
|
|
19
|
+
src/gencan.f
|
|
20
|
+
src/gencan_ieee_signal_routines.f90
|
|
21
|
+
src/pgencan.f90
|
|
22
|
+
src/initial.f90
|
|
23
|
+
src/title.f90
|
|
24
|
+
src/setsizes.f90
|
|
25
|
+
src/getinp.f90
|
|
26
|
+
src/strlength.f90
|
|
27
|
+
src/output.f90
|
|
28
|
+
src/cli_parser.f90
|
|
29
|
+
src/checkpoint.f90
|
|
30
|
+
src/writesuccess.f90
|
|
31
|
+
src/fparc.f90
|
|
32
|
+
src/gparc.f90
|
|
33
|
+
src/gwalls.f90
|
|
34
|
+
src/comprest.f90
|
|
35
|
+
src/comparegrad.f90
|
|
36
|
+
app/packmol.f90
|
|
37
|
+
src/polartocart.f90
|
|
38
|
+
src/resetcells.f90
|
|
39
|
+
src/tobar.f90
|
|
40
|
+
src/cell_indexing.f90
|
|
41
|
+
src/restmol.f90
|
|
42
|
+
src/swaptype.f90
|
|
43
|
+
src/swaptypemod.f90
|
|
44
|
+
src/ahestetic.f90
|
|
45
|
+
src/heuristics.f90
|
|
46
|
+
src/flashsort.f90
|
|
47
|
+
src/jacobi.f90
|
|
48
|
+
src/random.f90
|
|
49
|
+
src/sizes.f90
|
|
50
|
+
src/pbc.f90
|
|
51
|
+
src/usegencan.f90
|
|
52
|
+
src/compute_data.f90
|
|
53
|
+
src/flashmod.f90
|
|
54
|
+
src/computef.f90
|
|
55
|
+
src/computeg.f90
|
|
56
|
+
src/input.f90
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
# Installation directive
|
|
60
|
+
install(TARGETS packmol DESTINATION bin)
|
packmol-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2009-2018 Leandro Martínez, José Mario Martínez, Ernesto Birgin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
packmol-0.1.0/Makefile
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Makefile for Packmol: Read the comments if you have some
|
|
3
|
+
# problem while compiling.
|
|
4
|
+
#
|
|
5
|
+
# You may use the ./configure script to search automatically for
|
|
6
|
+
# some fortran compiler.
|
|
7
|
+
#
|
|
8
|
+
# This make file will try to compile packmol with the default
|
|
9
|
+
# fortran compiler, defined by the FC directive. For doing this,
|
|
10
|
+
# just type
|
|
11
|
+
#
|
|
12
|
+
# make
|
|
13
|
+
#
|
|
14
|
+
# If you want to compile with some specific fortran compiler, you must
|
|
15
|
+
# change the line below to the path of your fortran compiler.
|
|
16
|
+
#
|
|
17
|
+
FORTRAN=/usr/bin/gfortran
|
|
18
|
+
#
|
|
19
|
+
# Change the flags of the compilation if you want:
|
|
20
|
+
#
|
|
21
|
+
FLAGS= -O3 -march=native -funroll-loops
|
|
22
|
+
SRCDIR= src
|
|
23
|
+
MAINDIR= app
|
|
24
|
+
###################################################################
|
|
25
|
+
# #
|
|
26
|
+
# Generally no modifications are required after this. #
|
|
27
|
+
# #
|
|
28
|
+
###################################################################
|
|
29
|
+
#
|
|
30
|
+
# Flags for compiling development version
|
|
31
|
+
#
|
|
32
|
+
GENCANFLAGS := $(FLAGS)
|
|
33
|
+
# Flags for the routines that signal with --fast-math
|
|
34
|
+
IEEE_SIGNAL_FLAGS := $(FLAGS)
|
|
35
|
+
ifeq ($(MAKECMDGOALS),devel)
|
|
36
|
+
FLAGS = -Wall -fcheck=bounds -g -fbacktrace -ffpe-trap=zero,overflow,underflow
|
|
37
|
+
GENCANFLAGS = -fcheck=bounds -g -fbacktrace -ffpe-trap=zero,overflow,underflow
|
|
38
|
+
endif
|
|
39
|
+
ifeq ($(MAKECMDGOALS),perf)
|
|
40
|
+
FLAGS = -g -pg
|
|
41
|
+
GENCANFLAGS = -g -pg
|
|
42
|
+
endif
|
|
43
|
+
ifeq ($(MAKECMDGOALS),static)
|
|
44
|
+
FLAGS = -O3 --fast-math -static
|
|
45
|
+
GENCANFLAGS = -O3 --fast-math -static
|
|
46
|
+
endif
|
|
47
|
+
#
|
|
48
|
+
# Files required
|
|
49
|
+
#
|
|
50
|
+
oall = cenmass.o \
|
|
51
|
+
gencan.o \
|
|
52
|
+
pgencan.o \
|
|
53
|
+
initial.o \
|
|
54
|
+
title.o \
|
|
55
|
+
setsizes.o \
|
|
56
|
+
exit_codes.o \
|
|
57
|
+
getinp.o \
|
|
58
|
+
strlength.o \
|
|
59
|
+
output.o \
|
|
60
|
+
cli_parser.o \
|
|
61
|
+
checkpoint.o \
|
|
62
|
+
writesuccess.o \
|
|
63
|
+
fparc.o \
|
|
64
|
+
gparc.o \
|
|
65
|
+
gwalls.o \
|
|
66
|
+
comprest.o \
|
|
67
|
+
comparegrad.o \
|
|
68
|
+
packmol.o \
|
|
69
|
+
polartocart.o \
|
|
70
|
+
resetcells.o \
|
|
71
|
+
tobar.o \
|
|
72
|
+
cell_indexing.o \
|
|
73
|
+
restmol.o \
|
|
74
|
+
swaptype.o \
|
|
75
|
+
swaptypemod.o \
|
|
76
|
+
ahestetic.o \
|
|
77
|
+
heuristics.o \
|
|
78
|
+
flashsort.o \
|
|
79
|
+
jacobi.o \
|
|
80
|
+
random.o \
|
|
81
|
+
sizes.o \
|
|
82
|
+
pbc.o \
|
|
83
|
+
usegencan.o \
|
|
84
|
+
compute_data.o \
|
|
85
|
+
flashmod.o \
|
|
86
|
+
computef.o \
|
|
87
|
+
computeg.o \
|
|
88
|
+
input.o \
|
|
89
|
+
gencan_ieee_signal_routines.o
|
|
90
|
+
#
|
|
91
|
+
# Linking
|
|
92
|
+
#
|
|
93
|
+
all : $(oall)
|
|
94
|
+
@echo " ------------------------------------------------------ "
|
|
95
|
+
@echo " Compiling packmol with $(FORTRAN) "
|
|
96
|
+
@echo " Flags: $(FLAGS) "
|
|
97
|
+
@echo " ------------------------------------------------------ "
|
|
98
|
+
@$(FORTRAN) -o packmol $(oall) $(FLAGS)
|
|
99
|
+
@\rm -f *.mod *.o
|
|
100
|
+
@echo " ------------------------------------------------------ "
|
|
101
|
+
@echo " Packmol succesfully built."
|
|
102
|
+
@echo " ------------------------------------------------------ "
|
|
103
|
+
#
|
|
104
|
+
# Compiling with flags for development
|
|
105
|
+
#
|
|
106
|
+
static : devel
|
|
107
|
+
perf : devel
|
|
108
|
+
devel : $(oall)
|
|
109
|
+
@echo " ------------------------------------------------------ "
|
|
110
|
+
@echo " Compiling packmol with $(FORTRAN) "
|
|
111
|
+
@echo " Flags: $(FLAGS)"
|
|
112
|
+
@echo " ------------------------------------------------------ "
|
|
113
|
+
@$(FORTRAN) -o packmol $(oall) $(FLAGS)
|
|
114
|
+
@echo " ------------------------------------------------------ "
|
|
115
|
+
@echo " Packmol succesfully built. "
|
|
116
|
+
@echo " ------------------------------------------------------ "
|
|
117
|
+
#
|
|
118
|
+
# Modules
|
|
119
|
+
#
|
|
120
|
+
modules = exit_codes.o sizes.o pbc.o compute_data.o usegencan.o input.o flashmod.o \
|
|
121
|
+
swaptypemod.o ahestetic.o cell_indexing.o
|
|
122
|
+
exit_codes.o : $(SRCDIR)/exit_codes.f90
|
|
123
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/exit_codes.f90
|
|
124
|
+
sizes.o : $(SRCDIR)/sizes.f90
|
|
125
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/sizes.f90
|
|
126
|
+
pbc.o : $(SRCDIR)/pbc.f90
|
|
127
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/pbc.f90
|
|
128
|
+
compute_data.o : $(SRCDIR)/compute_data.f90 sizes.o
|
|
129
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/compute_data.f90
|
|
130
|
+
input.o : $(SRCDIR)/input.f90 sizes.o
|
|
131
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/input.f90
|
|
132
|
+
flashmod.o : $(SRCDIR)/flashmod.f90 sizes.o
|
|
133
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/flashmod.f90
|
|
134
|
+
usegencan.o : $(SRCDIR)/usegencan.f90 sizes.o
|
|
135
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/usegencan.f90
|
|
136
|
+
swaptypemod.o : $(SRCDIR)/swaptypemod.f90
|
|
137
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/swaptypemod.f90
|
|
138
|
+
ahestetic.o : $(SRCDIR)/ahestetic.f90
|
|
139
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/ahestetic.f90
|
|
140
|
+
cell_indexing.o : $(SRCDIR)/cell_indexing.f90
|
|
141
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/cell_indexing.f90
|
|
142
|
+
|
|
143
|
+
#
|
|
144
|
+
# Code compiled only for all versions
|
|
145
|
+
#
|
|
146
|
+
cenmass.o : $(SRCDIR)/cenmass.f90 $(modules)
|
|
147
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/cenmass.f90
|
|
148
|
+
initial.o : $(SRCDIR)/initial.f90 $(modules)
|
|
149
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/initial.f90
|
|
150
|
+
title.o : $(SRCDIR)/title.f90 $(modules)
|
|
151
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/title.f90
|
|
152
|
+
setsizes.o : $(SRCDIR)/setsizes.f90 $(modules)
|
|
153
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/setsizes.f90
|
|
154
|
+
getinp.o : $(SRCDIR)/getinp.f90 $(modules)
|
|
155
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/getinp.f90
|
|
156
|
+
strlength.o : $(SRCDIR)/strlength.f90 $(modules)
|
|
157
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/strlength.f90
|
|
158
|
+
output.o : $(SRCDIR)/output.f90 $(modules)
|
|
159
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/output.f90
|
|
160
|
+
cli_parser.o : $(SRCDIR)/cli_parser.f90 $(modules)
|
|
161
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/cli_parser.f90
|
|
162
|
+
checkpoint.o : $(SRCDIR)/checkpoint.f90 $(modules)
|
|
163
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/checkpoint.f90
|
|
164
|
+
writesuccess.o : $(SRCDIR)/writesuccess.f90 $(modules)
|
|
165
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/writesuccess.f90
|
|
166
|
+
fparc.o : $(SRCDIR)/fparc.f90 $(modules)
|
|
167
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/fparc.f90
|
|
168
|
+
gparc.o : $(SRCDIR)/gparc.f90 $(modules)
|
|
169
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/gparc.f90
|
|
170
|
+
gwalls.o : $(SRCDIR)/gwalls.f90 $(modules)
|
|
171
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/gwalls.f90
|
|
172
|
+
comprest.o : $(SRCDIR)/comprest.f90 $(modules)
|
|
173
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/comprest.f90
|
|
174
|
+
comparegrad.o : $(SRCDIR)/comparegrad.f90 $(modules)
|
|
175
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/comparegrad.f90
|
|
176
|
+
packmol.o : app/packmol.f90 $(modules)
|
|
177
|
+
@$(FORTRAN) $(FLAGS) -c app/packmol.f90
|
|
178
|
+
polartocart.o : $(SRCDIR)/polartocart.f90 $(modules)
|
|
179
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/polartocart.f90
|
|
180
|
+
resetcells.o : $(SRCDIR)/resetcells.f90 $(modules)
|
|
181
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/resetcells.f90
|
|
182
|
+
tobar.o : $(SRCDIR)/tobar.f90 $(modules)
|
|
183
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/tobar.f90
|
|
184
|
+
restmol.o : $(SRCDIR)/restmol.f90 $(modules)
|
|
185
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/restmol.f90
|
|
186
|
+
swaptype.o : $(SRCDIR)/swaptype.f90 $(modules)
|
|
187
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/swaptype.f90
|
|
188
|
+
heuristics.o : $(SRCDIR)/heuristics.f90 $(modules)
|
|
189
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/heuristics.f90
|
|
190
|
+
flashsort.o : $(SRCDIR)/flashsort.f90 $(modules)
|
|
191
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/flashsort.f90
|
|
192
|
+
jacobi.o : $(SRCDIR)/jacobi.f90
|
|
193
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/jacobi.f90
|
|
194
|
+
pgencan.o : $(SRCDIR)/pgencan.f90 $(modules)
|
|
195
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/pgencan.f90
|
|
196
|
+
random.o : $(SRCDIR)/random.f90
|
|
197
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/random.f90
|
|
198
|
+
computef.o : $(SRCDIR)/computef.f90 $(modules)
|
|
199
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/computef.f90
|
|
200
|
+
computeg.o : $(SRCDIR)/computeg.f90 $(modules)
|
|
201
|
+
@$(FORTRAN) $(FLAGS) -c $(SRCDIR)/computeg.f90
|
|
202
|
+
gencan_ieee_signal_routines.o : $(SRCDIR)/gencan_ieee_signal_routines.f90
|
|
203
|
+
@$(FORTRAN) $(IEEE_SIGNAL_FLAGS) -c $(SRCDIR)/gencan_ieee_signal_routines.f90
|
|
204
|
+
gencan.o : $(SRCDIR)/gencan.f gencan_ieee_signal_routines.o
|
|
205
|
+
@$(FORTRAN) $(GENCANFLAGS) -c $(SRCDIR)/gencan.f
|
|
206
|
+
#
|
|
207
|
+
# Clean build files
|
|
208
|
+
#
|
|
209
|
+
clean:
|
|
210
|
+
@\rm -f ./*.o ./*.mod ./src/*.mod ./src/*.o
|
|
211
|
+
#
|
|
212
|
+
# Remove all build and executable files to upload to git
|
|
213
|
+
#
|
|
214
|
+
cleanall:
|
|
215
|
+
@\rm -f ./packmol ./*.o ./*.mod ./src/*.mod ./src/*.o
|
packmol-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: packmol
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Packmol - Creates Initial Configurations for Molecular Dynamics Simulations
|
|
5
|
+
Project-URL: Homepage, https://github.com/m3g/packmol
|
|
6
|
+
Project-URL: Repository, https://github.com/m3g/packmol
|
|
7
|
+
Author: Packmol Developers
|
|
8
|
+
License: MIT
|
|
9
|
+
License-File: AUTHORS
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Fortran
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# Packmol
|
|
19
|
+
|
|
20
|
+
Packmol - Creates Initial Configurations for Molecular Dynamics Simulations
|
|
21
|
+
|
|
22
|
+
**https://m3g.github.io/packmol**
|
|
23
|
+
|
|
24
|
+
## What is Packmol
|
|
25
|
+
|
|
26
|
+
Packmol creates an initial point for molecular dynamics simulations by packing molecules in defined regions of space. The packing guarantees that short range repulsive interactions do not disrupt the simulations.
|
|
27
|
+
|
|
28
|
+
The great variety of types of spatial constraints that can be attributed to the molecules, or atoms within the molecules, makes it easy to create ordered systems, such as lamellar, spherical or tubular lipid layers.
|
|
29
|
+
|
|
30
|
+
The user must provide only the coordinates of one molecule of each type, the number of molecules of each type and the spatial constraints that each type of molecule must satisfy.
|
|
31
|
+
|
|
32
|
+
The package is compatible with input files of PDB, TINKER, and XYZ.
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
User guide, examples, and tutorials, are available at: https://m3g.github.io/packmol
|
|
37
|
+
|
|
38
|
+
## Installation instructions
|
|
39
|
+
|
|
40
|
+
### Multi-platform package provider with Julia
|
|
41
|
+
|
|
42
|
+
If you are not familiar with compiling packages, you may find it easier to get the Julia interface for
|
|
43
|
+
`packmol`, which provides executables for all common platforms: https://github.com/m3g/Packmol.jl
|
|
44
|
+
|
|
45
|
+
Installation of the Julia programming language and of the Julia `Packmol` package are necessary, but
|
|
46
|
+
these follow simple instructions which are described in the link above.
|
|
47
|
+
|
|
48
|
+
Compilation of the package, particularly on Linux platforms is, nevertheless, easy, following the instructions
|
|
49
|
+
below.
|
|
50
|
+
|
|
51
|
+
### Downloading
|
|
52
|
+
|
|
53
|
+
1. Download the `.tar.gz` or `.zip` files of the latest version from: https://github.com/m3g/packmol/releases
|
|
54
|
+
|
|
55
|
+
2. Unpack the files, for example with:
|
|
56
|
+
```bash
|
|
57
|
+
tar -xzvf packmol-21.0.0.tar.gz
|
|
58
|
+
```
|
|
59
|
+
or
|
|
60
|
+
```bash
|
|
61
|
+
unzip -xzvf packmol-21.0.0.zip
|
|
62
|
+
```
|
|
63
|
+
substituting the `21.0.0` with the correct version number.
|
|
64
|
+
|
|
65
|
+
### Using `make`
|
|
66
|
+
|
|
67
|
+
3. Go into the `packmol` directory, and compile the package (we assume `gfortran` or other compiler is available):
|
|
68
|
+
```bash
|
|
69
|
+
cd packmol
|
|
70
|
+
./configure [optional: path to fortran compiler]
|
|
71
|
+
make
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
4. An executable called `packmol` will be created in the main directory. Add that directory to your path.
|
|
75
|
+
|
|
76
|
+
### Using the Fortran Package Manager (`fpm`)
|
|
77
|
+
|
|
78
|
+
3. Install the Fortran Package Manager from: https://fpm.fortran-lang.org/en/install/index.html#install
|
|
79
|
+
|
|
80
|
+
4. Go into the `packmol` directory, and run:
|
|
81
|
+
```bash
|
|
82
|
+
fpm install --profile release
|
|
83
|
+
```
|
|
84
|
+
this will compile and send the executable somewhere in your `PATH`.
|
|
85
|
+
By default (on Linux systems) it will be `~/.local/bin`. Making it available
|
|
86
|
+
as a `packmol` command anywhere in your computer.
|
|
87
|
+
|
|
88
|
+
`fpm` will look for Fortran compilers automatically and will use `gfortran`
|
|
89
|
+
as default. To use another compiler modify the environment variable
|
|
90
|
+
`FPM_FC=compiler`, for example for `ifort`, use in bash, `export FPM_FC=ifort`.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Installation from the Python Package Index
|
|
94
|
+
Packmol is available for most platforms as a pre-build wheel from the Python Package Index.
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
pip install packmol
|
|
98
|
+
```
|
|
99
|
+
or direclty as CLI command using [uv](https://docs.astral.sh/uv/)
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
uvx packmol < inp.pack
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## References
|
|
106
|
+
|
|
107
|
+
Please always cite one of the following references in publications for which Packmol was useful:
|
|
108
|
+
|
|
109
|
+
L Martinez, R Andrade, EG Birgin, JM Martinez, Packmol: A package for building initial configurations for molecular dynamics simulations. Journal of Computational Chemistry, 30, 2157-2164, 2009. (https://doi.org/10.1002/jcc.21224)
|
|
110
|
+
|
|
111
|
+
JM Martinez, L Martinez, Packing optimization for the automated generation of complex system's initial configurations for molecular dynamics and docking. Journal of Computational Chemistry, 24, 819-825, 2003.
|
|
112
|
+
(https://doi.org/10.1002/jcc.10216)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
packmol-0.1.0/README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Packmol
|
|
2
|
+
|
|
3
|
+
Packmol - Creates Initial Configurations for Molecular Dynamics Simulations
|
|
4
|
+
|
|
5
|
+
**https://m3g.github.io/packmol**
|
|
6
|
+
|
|
7
|
+
## What is Packmol
|
|
8
|
+
|
|
9
|
+
Packmol creates an initial point for molecular dynamics simulations by packing molecules in defined regions of space. The packing guarantees that short range repulsive interactions do not disrupt the simulations.
|
|
10
|
+
|
|
11
|
+
The great variety of types of spatial constraints that can be attributed to the molecules, or atoms within the molecules, makes it easy to create ordered systems, such as lamellar, spherical or tubular lipid layers.
|
|
12
|
+
|
|
13
|
+
The user must provide only the coordinates of one molecule of each type, the number of molecules of each type and the spatial constraints that each type of molecule must satisfy.
|
|
14
|
+
|
|
15
|
+
The package is compatible with input files of PDB, TINKER, and XYZ.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
User guide, examples, and tutorials, are available at: https://m3g.github.io/packmol
|
|
20
|
+
|
|
21
|
+
## Installation instructions
|
|
22
|
+
|
|
23
|
+
### Multi-platform package provider with Julia
|
|
24
|
+
|
|
25
|
+
If you are not familiar with compiling packages, you may find it easier to get the Julia interface for
|
|
26
|
+
`packmol`, which provides executables for all common platforms: https://github.com/m3g/Packmol.jl
|
|
27
|
+
|
|
28
|
+
Installation of the Julia programming language and of the Julia `Packmol` package are necessary, but
|
|
29
|
+
these follow simple instructions which are described in the link above.
|
|
30
|
+
|
|
31
|
+
Compilation of the package, particularly on Linux platforms is, nevertheless, easy, following the instructions
|
|
32
|
+
below.
|
|
33
|
+
|
|
34
|
+
### Downloading
|
|
35
|
+
|
|
36
|
+
1. Download the `.tar.gz` or `.zip` files of the latest version from: https://github.com/m3g/packmol/releases
|
|
37
|
+
|
|
38
|
+
2. Unpack the files, for example with:
|
|
39
|
+
```bash
|
|
40
|
+
tar -xzvf packmol-21.0.0.tar.gz
|
|
41
|
+
```
|
|
42
|
+
or
|
|
43
|
+
```bash
|
|
44
|
+
unzip -xzvf packmol-21.0.0.zip
|
|
45
|
+
```
|
|
46
|
+
substituting the `21.0.0` with the correct version number.
|
|
47
|
+
|
|
48
|
+
### Using `make`
|
|
49
|
+
|
|
50
|
+
3. Go into the `packmol` directory, and compile the package (we assume `gfortran` or other compiler is available):
|
|
51
|
+
```bash
|
|
52
|
+
cd packmol
|
|
53
|
+
./configure [optional: path to fortran compiler]
|
|
54
|
+
make
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
4. An executable called `packmol` will be created in the main directory. Add that directory to your path.
|
|
58
|
+
|
|
59
|
+
### Using the Fortran Package Manager (`fpm`)
|
|
60
|
+
|
|
61
|
+
3. Install the Fortran Package Manager from: https://fpm.fortran-lang.org/en/install/index.html#install
|
|
62
|
+
|
|
63
|
+
4. Go into the `packmol` directory, and run:
|
|
64
|
+
```bash
|
|
65
|
+
fpm install --profile release
|
|
66
|
+
```
|
|
67
|
+
this will compile and send the executable somewhere in your `PATH`.
|
|
68
|
+
By default (on Linux systems) it will be `~/.local/bin`. Making it available
|
|
69
|
+
as a `packmol` command anywhere in your computer.
|
|
70
|
+
|
|
71
|
+
`fpm` will look for Fortran compilers automatically and will use `gfortran`
|
|
72
|
+
as default. To use another compiler modify the environment variable
|
|
73
|
+
`FPM_FC=compiler`, for example for `ifort`, use in bash, `export FPM_FC=ifort`.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Installation from the Python Package Index
|
|
77
|
+
Packmol is available for most platforms as a pre-build wheel from the Python Package Index.
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
pip install packmol
|
|
81
|
+
```
|
|
82
|
+
or direclty as CLI command using [uv](https://docs.astral.sh/uv/)
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
uvx packmol < inp.pack
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## References
|
|
89
|
+
|
|
90
|
+
Please always cite one of the following references in publications for which Packmol was useful:
|
|
91
|
+
|
|
92
|
+
L Martinez, R Andrade, EG Birgin, JM Martinez, Packmol: A package for building initial configurations for molecular dynamics simulations. Journal of Computational Chemistry, 30, 2157-2164, 2009. (https://doi.org/10.1002/jcc.21224)
|
|
93
|
+
|
|
94
|
+
JM Martinez, L Martinez, Packing optimization for the automated generation of complex system's initial configurations for molecular dynamics and docking. Journal of Computational Chemistry, 24, 819-825, 2003.
|
|
95
|
+
(https://doi.org/10.1002/jcc.10216)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|