{"id":30949258,"url":"https://github.com/manodeep/hinge","last_synced_at":"2025-09-11T03:14:27.320Z","repository":{"id":72461702,"uuid":"43669528","full_name":"manodeep/hinge","owner":"manodeep","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-28T03:00:36.000Z","size":1496,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-28T12:39:58.253Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manodeep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-05T06:56:19.000Z","updated_at":"2024-05-30T07:43:17.286Z","dependencies_parsed_at":"2024-01-19T08:08:29.932Z","dependency_job_id":"22d9c054-2524-4662-ad1f-d8aa0398621b","html_url":"https://github.com/manodeep/hinge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manodeep/hinge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manodeep%2Fhinge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manodeep%2Fhinge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manodeep%2Fhinge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manodeep%2Fhinge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manodeep","download_url":"https://codeload.github.com/manodeep/hinge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manodeep%2Fhinge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274573807,"owners_count":25310114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-11T03:14:25.664Z","updated_at":"2025-09-11T03:14:27.302Z","avatar_url":"https://github.com/manodeep.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"/* Author: Manodeep Sinha \u003cmanodeep@gmail.com\u003e\r\n   Date: March 18, 2015.\r\n   LICENSE: MIT\r\n*/\r\n\r\n![compile CI](https://github.com/manodeep/hinge/actions/workflows/compile.yml/badge.svg)\r\n\r\n# Description\r\n\r\nHINGE (**H**alo **I**nteraction **N**etwork and **G**alaxy **E**volution) contains a set of 3 tools (written in C) to create a\r\nfull interaction network from a cosmological simulation. The code\r\nis divided into 3 stages:\r\n\r\n## HaloParentFinder\r\n\r\nCreates the progenitor-descendant pairs between a target snapshot\r\nand future snapshots. Refer to the README in the HaloParentFinder\r\nsub-directory for more details. \r\n\r\n## OrphanFixer\r\n\r\nCorrects the situation where the halofinder misses subhalos that\r\npass too close to the host halo center. Such subhalos appear to have\r\n(artificially) disrupted; and reappear as a progenitor-less subhalo\r\nafter a few snapshots.\r\n\r\nThis step can only be run after ``HaloParentFinder`` has processed\r\nall of the snapshots. OrphanFixer creates the exact same interaction\r\nnetwork as the next step, ``MergerTree``. \r\n\r\n## MergerTree\r\n\r\nCreates the full interaction network and outputs various interactions.\r\nAdds stellar masses from various fits in the literature. genplotdata.c\r\ncontains majority of the routines to generate data used to make plots.\r\n\r\n\r\n# Installing HINGE\r\n\r\n## Prerequisites\r\n\r\n[GNU Scientific Library](http://www.gnu.org/software/gsl/ \"GSL\") is the \r\nonly pre-requisite for HINGE. And a working C compiler, of course. \r\n\r\n\r\n## HINGE Compile Options\r\n\r\nGet the source code from the repo, [here](https://bitbucket.org/manodeep/hinge/ \"HINGE repository\"), \r\n\r\n    hg clone https://USERNAME@bitbucket.org/manodeep/hinge\r\n\r\nEdit the ``common.mk`` file to set up your compilation options, \r\n\r\n\r\nCompile Option    |   Effect of compile option\r\n------------------|-----------------------------------\r\nBIGSIM            | Particle load is \u003e INT\\_MAX (2^31 ~ 2 Billion). All loop counters will be 64-bit integers\r\nLONGIDS           | Particle IDs are 64-bit integers\r\nMAKE\\_LEAN        | Remove memory allocations when they are no longer required (* always recommended *)\r\nSUSSING\\_TREES    | Read in AHF halos generated with the SUSSING TREES compile option\r\nSUBFIND           | Read in SubFind halos\r\nBGC2 \t\t      | Read in Rockstar halos written in the bgc2 format ( * under development *)\r\nWMAP5 \t\t\t  | Set up WMAP5 cosmology\r\nWMAP3 \t\t      | Set up WMAP3 cosmology\r\nWMAP1 \t\t\t  | Set up WMAP1 cosmology\r\n\r\n\r\n## Deprecated HINGE Compile Options\r\n\r\n* FOF_ONLY\t\t\t-- Generate the interaction network just based on FOF halos\r\n* GET_GROUPVEL\t-- Read in group velocities for [SubFind](http://enzo-project.org/ \"SubFind is bundled with Enzo\") halos. \r\n\r\n\r\n## Options under development\r\n\r\nThese are the following compile options that will be active in the near-future, \r\n\r\n* BGC2  \t\t-- Read-in [Rockstar](https://bitbucket.org/gfcstanford/rockstar \"Rockstar Repository\") halo catalogs that have been written in the ``bgc2`` format\r\n* USE_OMP   -- Enable OpenMP parallelization\r\n\r\n# Running HINGE\r\n\r\n## Input Formats for Halo Catalogs\r\n\r\nHINGE currently supports standard SubFind halos, and [AHF](http://popia.ft.uam.es/AHF/ \"Download AHF\") halos generated\r\nwith the ``SUSSING2013`` Makefile option. \r\n\r\n\r\n## Common parameters\r\n\r\nHere are the parameters that are common to all three codes, \r\n\r\nParameter name               |  Parameter Meaning\r\n-----------------------------|-------------------------------\r\n MIN\\_SNAPSHOT\\_NUM\t\t\t | Minimum snapshot number (integer).\r\n MAX_SNAPSHOT_NUM\t\t\t | Maximum snapshot number (integer).\r\n SNAPSHOT\\_DIR\t\t\t\t | Directory where all the snapshots are stored (string).\r\n SNAPSHOT\\_BASE\t\t\t\t | Basename for all the snapshots (string). Fully qualified snapshot names are generated using the C printf format ``sprintf(%s/%s_%03d,SNAPSHOT_DIR,SNAPSHOT_BASE,snapshot_number)``.\r\n GROUP\\_DIR\t\t\t\t\t | Directory where the halo catalogs are stored (string)\r\n GROUP\\_BASE\t\t\t\t | Basename for all the halo catalogs (string). For instance, SubFind writes out halo catalogs as ``groups\\_XXX.*``. So, if you are using SubFind halos then, ``GROUP_BASE`` should be `groups`.\r\n OUTPUT\\_DIR\t\t\t\t | Directory where all output is written\r\n\r\n\r\n## Parameter File for HaloParentFinder\r\n\r\nPlease refer to the README file in the haloparentfinder directory. \r\n\r\n## Parameter File for OrphanFixer\r\n\r\nPlease refer to the README file in the orphanfixer directory. \r\n\r\n## Parameter File for MergerTree\r\n\r\nPlease refer to the README file in the mergertree directory.\r\n\r\n# Author\r\n\r\n\r\nHINGE was written by Manodeep Sinha. Please contact the [author](mailto:manodeep@gmail.com) in\r\ncase of any issues.\r\n\r\n# LICENSE\r\n\r\nHINGE is released under the MIT license. Basically, do what you want\r\nwith the code including using it in commercial application (however,\r\nin that case, please send me an email - I would like to know how\r\nyou could possibly make a commercial application application out\r\nof this code).\r\n\r\n# Project URL\r\n \r\n* version control (https://bitbucket.org/manodeep/hinge)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanodeep%2Fhinge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanodeep%2Fhinge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanodeep%2Fhinge/lists"}