{"id":60604,"library":"salome-med-fichier","title":"SALOME MED Fichier","description":"A low-level C API for fine-grained access to the structure of MED files (.med).","status":"active","version":"4.1.1","language":"cpp","source_language":null,"source_url":null,"tags":["med","file-format","scientific-computing","c-api"],"install":[{"cmd":"vcpkg install salome-med-fichier","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(salome_med_fichier CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE SALOME::MED)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"med.h","correct":"#include <med.h>"}],"quickstart":{"code":"#include \"med.h\"\n#include <iostream>\n\nint main() {\n    med_idt fid = MEDouvrir(\"example.med\", MED_ACC_RDONLY);\n    if (fid < 0) {\n        std::cerr << \"Failed to open MED file\" << std::endl;\n        return 1;\n    }\n    \n    // Get number of meshes\n    med_int n;\n    MEDnMesh(fid, &n);\n    std::cout << \"Number of meshes: \" << n << std::endl;\n    \n    MEDfermer(fid);\n    return 0;\n}","lang":"cpp","description":"Open a MED file and query the number of meshes"},"warnings":[],"env_vars":null,"search_vec":"'access':14 'api':9,31 'c':8,30 'c-api':29 'comput':28 'fichier':3 'file':20,24 'file-format':23 'fine':12 'fine-grain':11 'format':25 'grain':13 'level':7 'low':6 'low-level':5 'med':2,19,21,22 'salom':1 'scientif':27 'scientific-comput':26 'structur':17","created_at":"2026-06-16T19:37:43.544252+00:00","updated_at":"2026-06-16T19:37:43.544252+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}